Advancing-the-Blog
Advancing-the-Blog copied to clipboard
Building on top of Try Django 1.9 (https://github.com/codingforentrepreneurs/try-django-19), we're going to build a more advanced blog and learn about all kinds of topics as we go.
Image is not uploaded in /media_cdn in Production app. Faces problem how to do that...........
Hello, I'm a beginner trying the django for first time based on your youtube video. However, I see no modules present in manage.py. RuntimeError: __class__ not set defining 'AbstractBaseUser' as...
``` def upload_location(instance, filename): #filebase, extension = filename.split(".") #return "%s/%s.%s" %(instance.id, instance.id, extension) PostModel = instance.__class__ new_id = PostModel.objects.order_by("id").last().id + 1 return "%s/%s" %(new_id, filename) ``` This does not work...
Hello, I'm getting a Key Error when post 'content' contains any special characters and foreign language letters in detail view. Oddly, in the list view, special characters and foreign language...
in previous version: > if not request.user.is_staff or not request.user.is_superuser: > raise Http404 one could get access only if he is an admin. if he is a staff then this...