try-django-19
try-django-19 copied to clipboard
Try Django 1.9 is an introduction to Django version 1.9 by creating a simple, yet robust, Django blog. This series covers a variety of Django basics as well as Django 1.9 specific material. Created by...
Added comments to urls.py
when you try to make new post upload_location give the instance and use its id for making a directory but at first it is no instance and the id will...
Hello Sir, I am having trouble when I want to make a post. After I press the button 'SAVE' I get an error . /posts/models.py", line 30, in upload_location new_id...
Hi, I am having trouble when I want to make a second post. File "/posts/models.py", line 37, in upload_location new_id = 1 qs = PostModel.objects.order_by("id").exists() if qs: new_id = qs.last().id...
AttributeError at /posts/create/ 'NoneType' object has no attribute 'id' Request Method: POST Request URL: http://127.0.0.1/posts/create/ Django Version: 1.11.3 Exception Type: AttributeError Exception Value: 'NoneType' object has no attribute 'id' Exception...
As mentioned in my comment to video #32 of 38, Basic User Permissions, the logic for throwing the 404 pages is flawed. As is, users with only one attribute (just...
testing
I try to put "www.xxx,com" twice ,but I got the same page "Success", I think it would be better to change the post function in HomeView ''' def post(self, request,...
When you create a new post with a title == 120 you've got an error. It's occurred because of slugfield in models.py. You need to add max_length = 120 to...