Tuesday, September 26, 2017

Re: Timezone error when I launch the admin login screen in 'Writing your first Django app'-tutorial

Check the Django Settings file and set 

TIME_ZONE = 'UTC'

or something in this list

Dan 

On 26 September 2017 at 14:30, Lise <lise.lystlund@gmail.com> wrote:
Hi,

I'm trying to learn how to use Django through the 'Writing your first Django app'-tuorial. I have reached the step where you create a superuser and you need to start the server and go to the local domain and see the admin login screen. I don't see the admin login screen, I see a message that says 

'A server error occurred. Please contact the administrator.'

and in the command prompt it says

'File "C:\Users\lbl\Anaconda3\envs\reports\lib\site-packages\pytz\__init__.py", line 181, in timezone raise UnknownTimeZoneError(zone) pytz.exceptions.UnknownTimeZoneError: 'UTC+01:00''

I am working on a Windows computer, so it might be something about the time settings on the computer not being convertible with the settings in Django. Does anyone know how to fix this? :)

I am very new to this, so please forgive me for being a newbie in some aspects!

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/537b282e-e553-41c2-8ccf-4533090c45b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Wildman and Herring Limited, Registered Office: 28 Brock Street, Bath, United Kingdom, BA1 2LN, Company no: 05766374

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPZHCY6hQk2oxoxC7we6-p3oFFUq%3DtFwBEw8daDrp0GVQ3w27A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment