#19558 closed Uncategorized (invalid)
Writing your first Django app, part 1 error
| Reported by: | ranamalo | Owned by: | nobody |
|---|---|---|---|
| Component: | Documentation | Version: | 1.4 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
I had to add the following to my settings.py in order to run syncdb:
import os os.environ['LANG'] = 'en_US.UTF-8'
Change History (3)
comment:1 by , 13 years ago
| Resolution: | → needsinfo |
|---|---|
| Status: | new → closed |
comment:3 by , 13 years ago
| Resolution: | needsinfo → invalid |
|---|
Note:
See TracTickets
for help on using tickets.
Configuring the locale in application code isn't necessary in general. The tutorial works for me without this, and I've run Django in a variety of environment without needing it.
Since you didn't provide any information on what happened before you added this to your settings, I cannot analyze anything, let alone identify a bug in Django.
All I can say is that locale belongs in system configuration rather than in application code.
I suggest using Django's support channels, and if necessary, to reopen this ticket with more information — at least the full traceback and the output of
locale.