Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • May 16 2015 16:59
    olasitarska commented #362
  • May 16 2015 16:59

    olasitarska on master

    Making post_detail.html more co… Merge pull request #362 from ve… (compare)

  • May 16 2015 16:59
    olasitarska closed #362
  • May 16 2015 16:57
    kvbik commented #362
  • May 16 2015 16:51
    veuu opened #362
  • May 16 2015 15:20
    hjwp commented #361
  • May 16 2015 15:16
    hjwp synchronize #361
  • May 16 2015 15:15
    hjwp synchronize #361
  • May 16 2015 15:12
    bmispelon commented #361
  • May 16 2015 15:08
    hjwp opened #361
  • May 16 2015 14:58
    bmispelon opened #360
  • May 16 2015 13:15
    bmispelon commented #359
  • May 16 2015 13:15

    bmispelon on master

    Provide alternative runserver c… Merge pull request #359 from Al… (compare)

  • May 16 2015 13:15
    bmispelon closed #359
  • May 16 2015 13:14
    keimlink commented #359
  • May 16 2015 13:13
    olasitarska commented #359
  • May 16 2015 13:09
    bmispelon commented #359
  • May 16 2015 11:53
    Almad opened #359
  • May 15 2015 20:00
    bmispelon commented #358
  • May 15 2015 19:59

    bmispelon on master

    fixing broken github link Merge pull request #358 from gs… (compare)

could you help me what I am doing wrong?
I just completed your "blog" tutorial (great job by the way) and it works as expected. One thing that I'd really like to see, however, is additional of a search form in the blog. Is it something you would consider adding?
Raja Wajahat Hussain
what actuallly allowed hosts are?
Piotr Niełacny
@rajawajahat list of domains that server will accept
This is becasue on one server you can have more than one website and it will recognize this by host
@Tichankova_gitlab is there some more information?
Mohd Mujtaba
Hello there.. I am mohd mujtaba I am new to here good to see you all guys and I will help everyone whatever I know and I want you guys to help me which I don't know about . Thanks in advance.
Yash Garg

in models.py i have choices in a field-

('APPROVED', 'Approved'),
approvalstatus = models.CharField(("Approval Status"),max_length=8,null=False,blank=False,choices=APPROVAL_CHOICES, default='Approved')

i wants to update value of approval_status field from views.py-

if Splash.objects.filter(ip_address = ipaddress).exists():
obj.approval_status = 'Pending'

i also tried-
obj.approval_status = obj.APPROVAL_CHOICES[1][1]

please suggest how can i update my approval_choices value from views.py.

Also, i'm unable to fetch session id using this statement-
obj.session_id = request.session.session_key
please also tell how can i fetch session key of a user.


Piotr Niełacny
@gargyash512_gitlab maybe you need to execute #save method as well
Yash Garg

@gargyash512_gitlab maybe you need to execute #save method as well

i'm saving after updation
i.e. obj.save()
but the problem is i'm unable to update the value of choice field

Piotr Niełacny
@gargyash512_gitlab do you tried this in console / shell?
manage.py shell
Mohd Mujtaba
What are the best way to keep track of user session in Django.. Like in flask we have session and cookie ??
Piotr Niełacny
I think solution for the web is the same -- cookies
Mohd Mujtaba
I have studied on google that cookies has many disadvantages and it's better to use session instead .
Имран Ильясов
Hi, Help
File "C:\Users\imran\Desktop\Django\imran\mysite\urls.py", line 20, in <module>
path('admin/', admin.site.urls),
NameError: name 'path' is not defined
@imrangerga_twitter use IMPORT to import path()
Andrea Petriku

Hi, I'm trying to run my new Django webapp on pythonanywhere.com, but after following all installing steps it says

ImportError: Your WhiteNoise configuration is incompatible with WhiteNoise v4.0

and doesn't load the webapp.

I'm using Python 3.8, Django 3.0.2 and the latest whitenoise 5.0.1

I tried to downgrade the whitenoise version to 4.0 and 3.31 but the error still raises :(

Hi all I am stuck at a place - I am using a Bootstrapios template for Django and when I try using my own image.png as Logo it does not show up but the .png that comes with the template shows up.Any help please
Mark Meier
@imrangerga_twitter did u make the import for path? "from django.urls import path"
Mark Meier
Hey gibt es hier jemanden, der lust hat mit mir python3/django3 zu lernen? ich bin noch recht am anfang und würde mich da gerne regelmäßig austauschen oder wir arbeiten an einem Projekt gemeinsam. (Falls du Berliner bist noch besser :D)
Schreib mich via Pricat Chat dann an oder falls es hier eine PM funktion gibt dann darüber.
hi i'm stuck with connecting icloud with my django app to list the contents, does anyone know how that can be achieved?
Brice Copy
Hi, I was wondering if anyone has looked into porting the Django Girls tutorial to glitch.com ? they support sqllite and python, integrate with github, support team development, we are thinking this might be an ideal platform to simplify some aspects of the tutorial we found to be a bit fiddly
Changes made in the blog not visible in the python anywhere site . Plzzzzz help
seung min
i was trying to use latest django version with pycharm and python 3.6 but although i updated sqlite 3.7.17 to 3.30.xx(latest version) it has same error {have to use 3.8.3 or later version}
can't I use latest version of django in python 3.6?
also, i was following tutorial and i opened my first server and the page said the debug mode is true. so i changed it to false but after that it keeps saying the request resource is not found
how can i solve it?
I am at "Django Installation" of the Django tutorial, I am changing "Execution Policy" at powershell to intall virtual environment. I got the message: changing policy might expose you to the security risks described in the ......" Is it OK to proceed? any hints?

@choi-seung-min According to the official django homepage (https://docs.djangoproject.com/en/3.0/releases/3.0/), Django 3.0.2 should be compatible with python 3.6, though they recommend using 3.8. I'm not sure about what the error you get in Pycharm is about. If you're comfortable with using the command line/terminal, then maybe you could try creating and running a django project without PyCharm? I've had trouble with PyCharm sometimes (probably because I don't understand it well enough), things like interpreter and virtual environment settings that lead to unexpected behavior.

About the debug mode: Just turn debug mode on again (DEBUG = True) in settings.py. It's best to leave debug mode on unless the tutorial says otherwise. Debug mode is great during production, it's only if you would make a live site that other people are to visit that you'll have to make sure it's off.

Allison Wills
Hi, Hope all is well! Wanted to check if there's a job board area for postings for the girls by chance from automotive companies?
Mohd Mujtaba
hey.. I am using django-allauth and why all the redirect_url request is going to localhost instead of my website? please tell me
seung min
@AnonZebra thank you
now i'm following tutorial with django 2.0.13 and python 3.6.8 with python and like you said i will let debug mode True until tutorial say change it
Ankit Kumar Pandey
I'm so glad I found this site/tutorials, I am really struggling with Django (as many tutorials have versions issues) but hopefully I will manage to get through it from here. There is just one issue, whenever I am trying to push my files, I am getting this error
I will be grateful if anyone can help
Raphael Das Gupta
This error message means that there are changes on your remote repository (on GitHub) that aren't in your local repository (on your PC). Git prevents you from pushing in this situation, so you won't accidentally overwrite those changes.

If you want to keep all changes and combine them, run

git pull


No, wait, sorry.
I just had a look at https://github.com/ankitkpandey1/my-first-blog and the one change it contains is the addition of the README.md file. This change doesn't share any history with your local changes, so git pull wouldn't work.
Try with
git push --force-with-lease -u origin master
Ankit Kumar Pandey
Now i am getting this error
I have even deleted readme file and still getting same error. Maybe I should start all over again and make new repo
Ankit Kumar Pandey
I made new repo and still same issue
Raphael Das Gupta
When creating a new Repo, make sure "initialize with a README" is unchecked. See https://tutorial.djangogirls.org/en/deploy/#pushing-your-code-to-github
Ankit Kumar Pandey
Yes, it's working now, can't believe how many hours I wasted trying to fix it.