Re: DJANGO_DEFAULT_SETTINGS

2012-08-14 Thread Carlos Andre
Thanks for all! i'm solving this problem!

2012/8/14 Melvyn Sopacua 

> On 15-8-2012 1:02, Furbee wrote:
>
> > DJANGO_SETTINGS_MODULE is an environment variable that must be set. I
> > believe this is taken care of for you when you create a project using
> > django-admin. You may need to create it manually.
>
> No, the trick is to run the manage.py script from the project's
> directory. This manage.py script is created by django-admin.py
> startproject. I realize you were on the right track, but putting it down
> correctly. The full details are in the manual as linked previously.
>
> From the tips and tricks department:
> You can use a shell (as in zsh/sh/bash/ksh) alias to run that script:
> alias djmanage='python manage.py'
> --
> Melvyn Sopacua
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: DJANGO_DEFAULT_SETTINGS

2012-08-14 Thread Melvyn Sopacua
On 15-8-2012 1:02, Furbee wrote:

> DJANGO_SETTINGS_MODULE is an environment variable that must be set. I
> believe this is taken care of for you when you create a project using
> django-admin. You may need to create it manually.

No, the trick is to run the manage.py script from the project's
directory. This manage.py script is created by django-admin.py
startproject. I realize you were on the right track, but putting it down
correctly. The full details are in the manual as linked previously.

>From the tips and tricks department:
You can use a shell (as in zsh/sh/bash/ksh) alias to run that script:
alias djmanage='python manage.py'
-- 
Melvyn Sopacua

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: DJANGO_DEFAULT_SETTINGS

2012-08-14 Thread Furbee
DJANGO_SETTINGS_MODULE is an environment variable that must be set. I
believe this is taken care of for you when you create a project using
django-admin. You may need to create it manually. Without that
environmental variable set, the Django shell won't open. As Jirka said,
please review the tutorials and documentation, especially Tutorial 1-4.
This will get you on your way to installing and using Django via the web,
and shell.

Furbee

On Tue, Aug 14, 2012 at 2:50 PM, Jirka Vejrazka wrote:

> > right, I was being very brief in my description!
> > But it is the following:
> > I want to insert data into the database from the shell, django shell, but
> > the result is always that you can not import the settings because the va
> > riavel DJANGO_SETTINGS_MODULE is not set
>
> Did you read my previous email and checked the documentation at all?
> It's all described there:
>
> https://docs.djangoproject.com/en/1.4/faq/usage/
> https://docs.djangoproject.com/en/1.4/ref/django-admin/
>
> If you read this and *still* have a problem, come back and ask a
> specific question with what you already tried (e.g. do you have a
> database defined and created?) and what specific error(s) are you
> experiencing.
>
>   HTH
>
>  Jirka
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: DJANGO_DEFAULT_SETTINGS

2012-08-14 Thread Jirka Vejrazka
> right, I was being very brief in my description!
> But it is the following:
> I want to insert data into the database from the shell, django shell, but
> the result is always that you can not import the settings because the va
> riavel DJANGO_SETTINGS_MODULE is not set

Did you read my previous email and checked the documentation at all?
It's all described there:

https://docs.djangoproject.com/en/1.4/faq/usage/
https://docs.djangoproject.com/en/1.4/ref/django-admin/

If you read this and *still* have a problem, come back and ask a
specific question with what you already tried (e.g. do you have a
database defined and created?) and what specific error(s) are you
experiencing.

  HTH

 Jirka

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: DJANGO_DEFAULT_SETTINGS

2012-08-14 Thread Carlos Andre
right, I was being very brief in my description!
But it is the following:
I want to insert data into the database from the shell, django shell, but
the result is always that you can not import the settings because the va
riavel DJANGO_SETTINGS_MODULE is not set


2012/8/14 <jirka.vejra...@gmail.com>

> **
> It's always good to copy the error message you're getting. It seems that
> you try to run "python manage.py shell" ang getting an error that
> DJANGO_SETTINGS_MODULE is not set.
>
> Please follow at least a bit of the tutorial on docs.djangoproject.comwhich 
> will teach you how to set this variable properly.
>
> HTH
>
> Jirka
> --
> *From: * Carlos Andre <eucan...@gmail.com>
> *Sender: * django-users@googlegroups.com
> *Date: *Tue, 14 Aug 2012 15:48:18 -0300
> *To: *<django-users@googlegroups.com>
> *ReplyTo: * django-users@googlegroups.com
> *Subject: *Re: DJANGO_DEFAULT_SETTINGS
>
> Ok, the  quest is relative  a how that work with forms of data in
> settins.py!
> not relative to date time.
> in  real i'm want insert data in databases athroughl shell  and thi error
> is show!
>
> 2012/8/14 Satinderpal Singh <satinder.goray...@gmail.com>
>
>> On Tue, Aug 14, 2012 at 9:42 PM, Carlos Andre <eucan...@gmail.com> wrote:
>> > hi developers i'm with a ptoblem in this date. How work?
>> > thanks!
>> Please clear your question, if you are looking for date and time at
>> your page please follow the following tutorial:
>> http://www.djangobook.com/en/2.0/chapter03/
>>
>> --
>> Satinderpal Singh
>> http://satindergoraya.blogspot.in/
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: DJANGO_DEFAULT_SETTINGS

2012-08-14 Thread jirka . vejrazka
It's always good to copy the error message you're getting. It seems that you 
try to run "python manage.py shell" ang getting an error that 
DJANGO_SETTINGS_MODULE is not set.

Please follow at least a bit of the tutorial on docs.djangoproject.com which 
will teach you how to set this variable properly.

 HTH

Jirka
-Original Message-
From: Carlos Andre <eucan...@gmail.com>
Sender: django-users@googlegroups.com
Date: Tue, 14 Aug 2012 15:48:18 
To: <django-users@googlegroups.com>
Reply-To: django-users@googlegroups.com
Subject: Re: DJANGO_DEFAULT_SETTINGS

Ok, the  quest is relative  a how that work with forms of data in
settins.py!
not relative to date time.
in  real i'm want insert data in databases athroughl shell  and thi error
is show!

2012/8/14 Satinderpal Singh <satinder.goray...@gmail.com>

> On Tue, Aug 14, 2012 at 9:42 PM, Carlos Andre <eucan...@gmail.com> wrote:
> > hi developers i'm with a ptoblem in this date. How work?
> > thanks!
> Please clear your question, if you are looking for date and time at
> your page please follow the following tutorial:
> http://www.djangobook.com/en/2.0/chapter03/
>
> --
> Satinderpal Singh
> http://satindergoraya.blogspot.in/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: DJANGO_DEFAULT_SETTINGS

2012-08-14 Thread Kurtis Mullins
Hey Carlos,

Unfortunately I'm having a difficult time understanding your English. I do
apologize!
If I understand correctly, it sounds like you want to insert some data
using the shell and you're running into an error. Can you show us the error
you are getting?


On Tue, Aug 14, 2012 at 2:48 PM, Carlos Andre  wrote:

> Ok, the  quest is relative  a how that work with forms of data in
> settins.py!
> not relative to date time.
> in  real i'm want insert data in databases athroughl shell  and thi error
> is show!
>
>
> 2012/8/14 Satinderpal Singh 
>
>> On Tue, Aug 14, 2012 at 9:42 PM, Carlos Andre  wrote:
>> > hi developers i'm with a ptoblem in this date. How work?
>> > thanks!
>> Please clear your question, if you are looking for date and time at
>> your page please follow the following tutorial:
>> http://www.djangobook.com/en/2.0/chapter03/
>>
>> --
>> Satinderpal Singh
>> http://satindergoraya.blogspot.in/
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: DJANGO_DEFAULT_SETTINGS

2012-08-14 Thread Carlos Andre
Ok, the  quest is relative  a how that work with forms of data in
settins.py!
not relative to date time.
in  real i'm want insert data in databases athroughl shell  and thi error
is show!

2012/8/14 Satinderpal Singh 

> On Tue, Aug 14, 2012 at 9:42 PM, Carlos Andre  wrote:
> > hi developers i'm with a ptoblem in this date. How work?
> > thanks!
> Please clear your question, if you are looking for date and time at
> your page please follow the following tutorial:
> http://www.djangobook.com/en/2.0/chapter03/
>
> --
> Satinderpal Singh
> http://satindergoraya.blogspot.in/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: DJANGO_DEFAULT_SETTINGS

2012-08-14 Thread Satinderpal Singh
On Tue, Aug 14, 2012 at 9:42 PM, Carlos Andre  wrote:
> hi developers i'm with a ptoblem in this date. How work?
> thanks!
Please clear your question, if you are looking for date and time at
your page please follow the following tutorial:
http://www.djangobook.com/en/2.0/chapter03/

-- 
Satinderpal Singh
http://satindergoraya.blogspot.in/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



DJANGO_DEFAULT_SETTINGS

2012-08-14 Thread Carlos Andre
hi developers i'm with a ptoblem in this date. How work?
thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.