Re: DJANGO NOT FOUND

2017-12-25 Thread Etienne Robillard

Hi,

Why do you use eclipse? I don't recommend using and IDE like eclipse for 
django and python programming since it may easily confuse newbies who 
still need to learn the language.


Virtualenv is ok assuming you have basic Python programming experience 
but Django can run fine without it.


Keep it simple, take the time to learn the language and don't make 
things more complex than they are.


HTH

Etienne

Le 2017-12-24 à 05:58, Avraham Serour a écrit :
did you create a virtualenv for the project? you shouldn't pip install 
stuff in the system python.


can you import django using the python console?

On Sun, Dec 24, 2017 at 2:22 AM, Jack 
> wrote:


Hi, i've installed on my ubuntu 16.04 LTS python3.6 and django but
django i have installed with pip3 and usign virtualenv, but it is
ok by console, the problem is in eclipse, i installed python, it
is OK, but at the moment of creating a django project, it drops a
message, djangonotfound, i've removed the interpreter and add it
again because i thought it was the problem but the problem
continues, i've uninstalled pydev from eclipse and the problem is
the same.

If someone knows about this, please help me.

Thnks a lot.
-- 
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 https://groups.google.com/group/django-users
.
To view this discussion on the web visit

https://groups.google.com/d/msgid/django-users/58251deb-dc26-4f68-8a1b-c838f0f97e43%40googlegroups.com

.
For more options, visit https://groups.google.com/d/optout
.


--
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFWa6tK0Ev9jCqT2h%3Dd5K4QocPUjx4MvnNiNwQDQ9ZyAkdv5gg%40mail.gmail.com 
.

For more options, visit https://groups.google.com/d/optout.


--
Etienne Robillard
tkad...@yandex.com
https://www.isotopesoftware.ca/

--
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f24a6ec9-7822-1f67-3cbf-e78256443baa%40yandex.com.
For more options, visit https://groups.google.com/d/optout.


Re: DJANGO NOT FOUND

2017-12-24 Thread Avraham Serour
did you create a virtualenv for the project? you shouldn't pip install
stuff in the system python.

can you import django using the python console?

On Sun, Dec 24, 2017 at 2:22 AM, Jack <jackjimmygonzalesro...@gmail.com>
wrote:

> Hi, i've installed on my ubuntu 16.04 LTS python3.6 and django but django i
> have installed with pip3 and usign virtualenv, but it is ok by console, the
> problem is in eclipse, i installed python, it is OK, but at the moment of
> creating a django project, it drops a message, django not found, i've
> removed the interpreter and add it again because i thought it was the
> problem but the problem continues, i've uninstalled pydev from eclipse and
> the problem is the same.
>
> If someone knows about this, please help me.
>
> Thnks a lot.
>
> --
> 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 https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/58251deb-dc26-4f68-8a1b-c838f0f97e43%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/58251deb-dc26-4f68-8a1b-c838f0f97e43%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFWa6tK0Ev9jCqT2h%3Dd5K4QocPUjx4MvnNiNwQDQ9ZyAkdv5gg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


DJANGO NOT FOUND

2017-12-23 Thread Jack
Hi, i've installed on my ubuntu 16.04 LTS python3.6 and django but django i 
have installed with pip3 and usign virtualenv, but it is ok by console, the 
problem is in eclipse, i installed python, it is OK, but at the moment of 
creating a django project, it drops a message, django not found, i've 
removed the interpreter and add it again because i thought it was the 
problem but the problem continues, i've uninstalled pydev from eclipse and 
the problem is the same.

If someone knows about this, please help me.

Thnks a lot.

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/58251deb-dc26-4f68-8a1b-c838f0f97e43%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Why django not found static files?

2011-02-03 Thread Marc Aymerich
On Thu, Feb 3, 2011 at 2:58 PM, Brian Neal  wrote:
> On Feb 3, 6:04 am, Marc Aymerich  wrote:
>> On Thu, Feb 3, 2011 at 12:51 PM, Marc Aymerich  wrote:
>> > Hi,
>> > I just installed the django-admin-tools app but my django installation
>> > doesn't load the css, js and other static files.
>>
>> > in settings.py I have:
>> > STATIC_ROOT = '/home/ucp/trunk/static/'
>> > STATIC_URL = '/static/'
>>
>> > and when i try to load
>> >http://localhost:8081/static/admin_tools/css/dashboard.cssI get a
>> > "page not found" error :(
>>
>> > but this file seems to be in the right directory and have read
>> > permisons for my user!
>> > /home/ucp/trunk/static/admin_tools/css/dashboard.css
>>
>> > what I'm missing?
>>
>> I solve it setting staticfiles_dirs var:
>>
>> STATICFILES_DIRS = ('/home/ucp/trunk/static/',)
>>
>
> STATIC_ROOT is the location of where the management command is going
> to place all the static files it collects. So normally (?) I think
> you'll want STATIC_ROOT to be a different directory than what you put
> in STATICFILES_DIRS. Think of it this way: your non-app specific
> static files will appear in a directory that is listed in
> STATICFILES_DIRS, your app-specifc files typically would appear under
> your_app/static, and all of the static files will be copied to
> STATIC_ROOT after running the management command. In production, you'd
> likely configure your server to serve files out of STATIC_ROOT.
>
> Hope that helps,

Thanks Brian, now I understand what is STATIC_ROOT and STATICFILES_DIRS :)

-- 
Marc

-- 
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: Why django not found static files?

2011-02-03 Thread Brian Neal
On Feb 3, 6:04 am, Marc Aymerich  wrote:
> On Thu, Feb 3, 2011 at 12:51 PM, Marc Aymerich  wrote:
> > Hi,
> > I just installed the django-admin-tools app but my django installation
> > doesn't load the css, js and other static files.
>
> > in settings.py I have:
> > STATIC_ROOT = '/home/ucp/trunk/static/'
> > STATIC_URL = '/static/'
>
> > and when i try to load
> >http://localhost:8081/static/admin_tools/css/dashboard.cssI get a
> > "page not found" error :(
>
> > but this file seems to be in the right directory and have read
> > permisons for my user!
> > /home/ucp/trunk/static/admin_tools/css/dashboard.css
>
> > what I'm missing?
>
> I solve it setting staticfiles_dirs var:
>
> STATICFILES_DIRS = ('/home/ucp/trunk/static/',)
>

STATIC_ROOT is the location of where the management command is going
to place all the static files it collects. So normally (?) I think
you'll want STATIC_ROOT to be a different directory than what you put
in STATICFILES_DIRS. Think of it this way: your non-app specific
static files will appear in a directory that is listed in
STATICFILES_DIRS, your app-specifc files typically would appear under
your_app/static, and all of the static files will be copied to
STATIC_ROOT after running the management command. In production, you'd
likely configure your server to serve files out of STATIC_ROOT.

Hope that helps,

BN

-- 
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: Why django not found static files?

2011-02-03 Thread Marc Aymerich
On Thu, Feb 3, 2011 at 12:51 PM, Marc Aymerich  wrote:
> Hi,
> I just installed the django-admin-tools app but my django installation
> doesn't load the css, js and other static files.
>
> in settings.py I have:
> STATIC_ROOT = '/home/ucp/trunk/static/'
> STATIC_URL = '/static/'
>
> and when i try to load
> http://localhost:8081/static/admin_tools/css/dashboard.css I get a
> "page not found" error :(
>
> but this file seems to be in the right directory and have read
> permisons for my user!
> /home/ucp/trunk/static/admin_tools/css/dashboard.css
>
> what I'm missing?


I solve it setting staticfiles_dirs var:

STATICFILES_DIRS = ('/home/ucp/trunk/static/',)


-- 
Marc

-- 
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.



Why django not found static files?

2011-02-03 Thread Marc Aymerich
Hi,
I just installed the django-admin-tools app but my django installation
doesn't load the css, js and other static files.

in settings.py I have:
STATIC_ROOT = '/home/ucp/trunk/static/'
STATIC_URL = '/static/'

and when i try to load
http://localhost:8081/static/admin_tools/css/dashboard.css I get a
"page not found" error :(

but this file seems to be in the right directory and have read
permisons for my user!
/home/ucp/trunk/static/admin_tools/css/dashboard.css

what I'm missing?

Thanks!
-- 
Marc

-- 
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.