Can you show the file structure of you project like this:

/project
-app1/
--models.py
--views.py
-manage.py
-settings.py

with your actual files and structure?
Also it would be useful to see the contents of you manage.py file

On Friday, March 22, 2013 12:54:58 AM UTC-5, Lightning wrote:
>
> CORRECTION;
>
> I gave it a shot Bill an thanks for the reply btw ... this also id not 
> work I pasted what i did in the terminal. manage.py NOT settings.py is 
> nested in /home/lightning/Docments/django-works/mysite/manage.py. 
> settings.py is one down
>
>
> On Thu, Mar 21, 2013 at 10:51 PM, hugh Manchu 
> <hughma...@gmail.com<javascript:>
> > wrote:
>
>> I gave it a shot Bill an thanks for the reply btw ... this also id not 
>> work I pasted what i did in the terminal. settings.py is nested in 
>> /home/lightning/Docments/django-works/mysite/manage.py. settings.py is one 
>> down
>>
>>
>> On Thu, Mar 21, 2013 at 1:39 PM, Bill Freeman <ke1...@gmail.com<javascript:>
>> > wrote:
>>
>>> Setting an environment variable is done by saying something like:
>>>
>>> lightning@rigel5:~$ export DJANGO_SETTINGS_MODULE='mysite.settings'
>>>
>>> assuming that your settings.py file is in a directory named "mysite", in 
>>> turn in the current directory (your home directory, if I interpret your 
>>> prompt string correctly).  Then that command may work.
>>>
>>> But that's the painful way to do that.  Presumably there is a file named 
>>> manage.py either in the same directory as settings.py (older Djangos) or 
>>> one directory up (newer Djangos).  'cd' to the directory containing 
>>> manage.py and type:
>>>
>>> lightning@rigel5:pathToDirectoryContainingManage_py$ python manage.py 
>>> diffsettings
>>>
>>> If you look at manage.py with 'less' or with an editor, you will see 
>>> that it sets the DJANGO_SETTINGS_MODULE environment variable (though using 
>>> python code, rather than shell code) appropriately (for use from the 
>>> current directory) before doing other stuff.
>>>
>>> For my money, django-admin.py should only ever be used for its 
>>> startproject command.  Everything else should be done with manage.py after 
>>> cd'ing to the directory that contains it (or from a wsgi script, which also 
>>> sets the DJANGO_SETTINGS_MODULE environment variable and adjusts sys.path 
>>> to be sure that the directory containing manage.py is there, but that will 
>>> come much later for you, I think).
>>>
>>> Bill
>>>
>>> On Thu, Mar 21, 2013 at 1:13 PM, Lightning <hughma...@gmail.com<javascript:>
>>> > wrote:
>>>
>>>>
>>>>
>>>> On Wednesday, March 20, 2013 11:50:49 PM UTC-7, Lightning wrote:
>>>>>
>>>>>
>>>>> <http://stackoverflow.com/questions/15538277/i-encountered-a-core-exception-and-need-help-configuring-for-a-database-my-os-i#>
>>>>>  
>>>>> **
>>>>>    
>>>>> [image: enter image description here]I need help configuring for a 
>>>>> database. Is there a paper I can read that will give me an overview on 
>>>>> this 
>>>>> procedure? I encountered a core exception. My OS is Ubuntu 12.10 32 bit.
>>>>>
>>>>> ENVIRONMENT_VARIABLE = "DJANGO_SETTINGS_MODULE"
>>>>> class LazySettings(LazyObject):
>>>>>     """
>>>>>     A lazy proxy for either global Django settings or a custom settings 
>>>>> object.
>>>>>     The user can manually configure settings prior to using them. 
>>>>> Otherwise,
>>>>>     Django uses the settings module pointed to by DJANGO_SETTINGS_MODULE.
>>>>>     """
>>>>>
>>>>>
>>>>
>>>>
>>>>  ImproperlyConfigured: Requested setting USE_I18N, but settings are not 
>>>> configured. You must either define the environment variable 
>>>> DJANGO_SETTINGS_MODULE or call settings.configure() before accessing 
>>>> settings.
>>>>  
>>>> -- 
>>>> 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...@googlegroups.com <javascript:>.
>>>>
>>>> To post to this group, send email to 
>>>> django...@googlegroups.com<javascript:>
>>>> .
>>>> Visit this group at http://groups.google.com/group/django-users?hl=en.
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>  
>>>>  
>>>>
>>>
>>>  -- 
>>> You received this message because you are subscribed to a topic in the 
>>> Google Groups "Django users" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/django-users/h7BncMwxH7E/unsubscribe?hl=en
>>> .
>>> To unsubscribe from this group and all its topics, send an email to 
>>> django-users...@googlegroups.com <javascript:>.
>>> To post to this group, send email to django...@googlegroups.com<javascript:>
>>> .
>>> Visit this group at http://groups.google.com/group/django-users?hl=en.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>  
>>>  
>>>
>>
>>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to