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)

Private Python Practice file
I am stuck with this error
PS C:\Users\NT900X3L-K78L\djangogirls> py manage.py-tpl migrate
Traceback (most recent call last):
File "manage.py-tpl", line 15, in <module>
File "C:\users\NT900X3L-K78L\djangogirls\myvenv\lib\site-packages\django\core\management__init.py", line 371, in execute_from_command_line
File "C:\users\NT900X3L-K78L\djangogirls\myvenv\lib\site-packages\django\core\management\
init.py", line 317, in execute
File "C:\users\NT900X3L-K78L\djangogirls\myvenv\lib\site-packages\django\conf\
init.py", line 56, in getattr
File "C:\users\NT900X3L-K78L\djangogirls\myvenv\lib\site-packages\django\conf\
init.py", line 43, in _setup
self._wrapped = Settings(settings_module)
File "C:\users\NT900X3L-K78L\djangogirls\myvenv\lib\site-packages\django\conf\
init.py", line 106, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "C:\Users\NT900X3L-K78L\AppData\Local\Programs\Python\Python36-32\lib\importlib\
init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 978, in _gcd_import
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 936, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 978, in _gcd_import
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 948, in _find_and_load_unlocked
ModuleNotFoundError: No module named '{{ project_name }}'
i have no idea what it means.
Ronny Adrian Meza Acosta
Hello, I am working with djangogirls/tutorial in mi computer every thing working, but in pythonanywhere the pages look differents, I think that the data base is not updated. Some one have a similar problem? Please, let me know, thanks a lot
Hi girls, I am trying to use Celery in Django to run some background tasks. and the thing is, is the Celery able to handle multiple layers of async method? Because my tasks require a lot of await and async.
Hello am new to django programing
But am having trouble with template does not exist, can I get help please thank you
Suyoj Man Tamrakar
@emperor0004 Could you please post the error log as well..So that it could be more clear to us?
Hi, I'm running through the tutorial and trying to deploy the server. But I'm getting this error when I try to run it: "Error: [errno 11001] getaddrinfo failed"
@Nollonpollon did you fill in ALLOWED_HOSTS in your mysite/settings.py file? Or is it an empty list?
@dtomlinson91 Hi, I tried both filling it out and keeping it empty 🙂

Do you know if you are behind a proxy? This error is raised from the socket package: https://docs.python.org/3.5/library/socket.html#socket.getaddrinfo and could be for many reasons, I've seen it if it cannot resolve a hostname when I'm behind a proxy server.

Are you trying to start the webserver locally, or are you trying to host on pythonanywhere?

Makes sense, but i'm not behind a proxy. I'm just trying to host it locally for now
Hmm, is it failing when you do a python manage.py runserver? Can you try the command python manage.py runserver
Or if you’re on Windows try 0:8000 instead
Yea, so when i do "python manage.py runserver 0:8000" then it gives me that error. When i do it without 0:8000 it gives me the UnicodeDecodeError
Supratik Sarkar
Is it really possible to completely skip CSS and use Django to build good UI for my portfolio?
Vishesh Mangla
nobody 's stopping you even if u r a boy.
the community is named as "...".
@XtremeGood ok thank u
Виктория Романюк
Hi, everybody! :)
I like Django a lot :)
I am from Kyiv
Kaustubh Maske Patil
Hi Victoria, I like Django too!
And also chess (of the Russian kind) if you play that :)
Виктория Романюк
@nikochiko yes, the chess is very amazing hobby for mind, and I play in chess sometimes because I don't have partner for this game. Django I have been learning 5 months and today I saw this forum :) I would like to be helpfull in this community :)
Kaustubh Maske Patil
Oh that's cool! I am new as well :D

Hi, I am new here and I am just trying to start with django, but I have a problem. Right at the beginning. When setting in console: django-admin.py startproject mysite . I get : #!c:\users\olga\djangogirls_venv_\scripts\python.exe
from django.core import management

if name == "main":

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