Opened 9 years ago

Closed 9 years ago

#25443 closed Uncategorized (worksforme)

tutorial 1: database setup fails

Reported by: xtrick Owned by: nobody
Component: Uncategorized Version: 1.8
Severity: Normal Keywords: SECRET_KEY
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

All went well until the command

$ python manage.py makemigrations polls

This fails with the following message

django.core.exceptions.improperlyconfigured: The SECRET_KEY setting must not be empty.

I'm sorry if this is trivia(probably is) but i'm new to al this and stumped.
Others may get the same problem and i will await your response d_hewlett@…

Change History (6)

comment:1 by Tim Graham, 9 years ago

Resolution: worksforme
Status: newclosed

Hi, I doubt this is a bug in the tutorial. Could you please try the ways listed at TicketClosingReasons/UseSupportChannels to get help first? Thanks!

comment:2 by xtrick, 9 years ago

no further comment

comment:3 by xtrick, 9 years ago

Resolution: worksforme
Status: closednew

comment:4 by xtrick, 9 years ago

i have checked thoroughly and get the same result. Please Help!

i find mention of a 'secret key' strange in itself given your database is not a complex one and maybe a clue in itself.

Suggestion: Perhaps the tutorial used to work however some change has invalidated it.....i'm also surprised to be confronted with this problem.
i'll abandon database use until i get explanation and press on.

comment:5 by Collin Anderson, 9 years ago

Hi, there should be a SECRECT_KEY listed in your settings.py that was generated when you ran startproject. Please ask on django-users for ideas to help diagnose. https://groups.google.com/forum/#!forum/django-users

comment:6 by Tim Graham, 9 years ago

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top