tickets_full: 143

This data as json

id created changetime last_pulled_from_trac stage status component type severity version resolution summary description owner reporter keywords easy has_patch needs_better_patch needs_tests needs_docs ui_ux
143 2005-07-21 19:42:36 2007-07-03 23:04:38 2019-06-24 00:16:47.565693 Accepted closed Core (Other) defect normal   fixed Problem running the command line examples in Tut 1 when using --settings option In tutorial 1, under "Playing with the API", none of the examples will work if you've been using the --settings option with django-admin.py (the DJANGO_SETTINGS_MODULE env variable was never set). To work, you have to do the following before importing the project objects: {{{ >>> import os >>> os.environ['DJANGO_SETTINGS_MODULE']='myproject.settings.main' >>> from django.models.polls import polls, choices }}} Is there a more user friendly way to do this? Maybe add a global variable to django.conf that is used to do the import? {{{ >>> django.conf.DJANGO_SETTINGS_MODULE='myproject.settings.main' }}} or possibly {{{ >>> django.settings_module='myproject.settings.main' }}} adrian sdelatorre@gmail.com   0 0 0 0 0 0
Powered by Datasette · Query took 3.019ms