Re: Can't run django!

2015-03-04 Thread Bill Blanchard
Can we see a sanitized version of your settings file? My guess is there's probably a typo in there somewhere. On Mon, Mar 2, 2015 at 10:44 AM, David Zahedi wrote: > Hi there, > > I am using python 2.7 and django 1.75; when I run "manage.py runserver" I > get the following error: > > CommandErro

Re: Can't run django!

2015-03-04 Thread Andrew Farrell
You might see if DEBUG is being set to False in an unexpected location by using the silver searcher (also on windows ) to quickly search for a string in a directory tree. $ ag DEBUG within your a

Re: Can't run django!

2015-03-04 Thread James Schneider
Is there a possibility of having more than one settings file? If so, ensure that your manage.py is pointing at the right settings file. The output of 'manage.py runserver' should also show the dotted path of the settings file that it is using just before that error is displayed (I believe). You ca

Can't run django!

2015-03-04 Thread David Zahedi
Hi there, I am using python 2.7 and django 1.75; when I run "manage.py runserver" I get the following error: CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False. An exception has occurred, use %tb to see the full traceback. My DEBUG is True. Thanks -- You received this me

Re: I can't run django server nor activate the virtualenv

2014-05-03 Thread Lee
You are welcome, glad it helped :) -- 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 t

Re: I can't run django server nor activate the virtualenv

2014-05-03 Thread Fred DJar
FINALLY the server is running the problem was is two dependencies django-userena and django-bootstrap-form. and the userena dependency was relying on another dependency which is six (the core of the problem) because it didn't installed automatically when installing userena so i had to install

Re: I can't run django server nor activate the virtualenv

2014-05-03 Thread Fred DJar
the boostrapform was installed correctly but there's still some problems as you said this is not my code, and i will try to contact the guy who write the code and get the missing dependencies On Sa

Re: I can't run django server nor activate the virtualenv

2014-05-03 Thread Lee
Actually, its probably the same problem as from the start as I see your install from the requirements file only installed Django itself and nothing else. THerefore I presume it does not have a list of all the dependencies you need. Assuming the last error was again "ImportError : No module named

Re: I can't run django server nor activate the virtualenv

2014-05-03 Thread Lee
Can you copy the complete error across? The end of it is all important and its chopped off in the screenshot. Thanks On Saturday, 3 May 2014 16:25:57 UTC+1, Fred DJar wrote: > > Thanks > the second solution worked fine and the requirements were installed > > but again when i tried to run the se

Re: I can't run django server nor activate the virtualenv

2014-05-03 Thread Fred DJar
Thanks the second solution worked fine and the requirements were installed but again when i tried to run the server this is what i got On Monday, 28 April 2014 11:03:40 UTC+1, Fred DJar wrote: > >

Re: I can't run django server nor activate the virtualenv

2014-05-02 Thread Lee
Whoops sorry, should have thought, rmvirtualenv and mkvirtualenv come with virtualenvwrapper, not the default virtualenv... Regarding the first error, was that the whole error or was there some more after where the screenshot cut off? Looks like it tried to install django that time so I guess t

Re: I can't run django server nor activate the virtualenv

2014-05-02 Thread Fred DJar
Trying your first solution gave me this error messages ! And trying the second solution gave me the message that rmvirtualenv : command not found ! On Friday, 2 May 2014 23:26:43 UTC+1, Lee wrote:

Re: I can't run django server nor activate the virtualenv

2014-05-02 Thread Lee
So it looks like its uninstalling the Django you already have installed in the global packages, in order to install the version specified in the requirements file, but is hitting a permissions error in doing so because you are not logged in as root (or elevating with sudo). I presume your virtu

Re: I can't run django server nor activate the virtualenv

2014-05-02 Thread Fred DJar
I got this error message trying to fetch the requirements On Monday, 28 April 2014 11:03:40 UTC+1, Fred DJar wrote: > > > > > *Hello guys, i'm a newbie so bear with me :)I have installed python 2

Re: I can't run django server nor activate the virtualenv

2014-05-02 Thread Fred DJar
OMG another problem appeared from nowhere the "source activate" command is not working. i can't activate my virtualenv On Friday, 2 May 2014 14:50:12 UTC+1, Andréas Kühne wrote: > > You can always

Re: I can't run django server nor activate the virtualenv

2014-05-02 Thread Andreas Kuhne
You can always see if your shell is running with a virtual environment, by the (env) in front of the prompt. If you check your last screenshot, you will see that you are running in a virtualenvironment there. Regards, Andréas 2014-05-02 15:48 GMT+02:00 Andreas Kuhne : > You are not running your

Re: I can't run django server nor activate the virtualenv

2014-05-02 Thread Andreas Kuhne
You are not running your commands in a virtual environment. You can't run pip outside the virtual environment because that requires root permissions. If you type "sudo pip install -r requirements", it will install the files, but I'm not sure you want to do that. Every shell you open, you have to r

Re: I can't run django server nor activate the virtualenv

2014-05-02 Thread Fred DJar
I've got an error message running the last command. here is the screenshot On Friday, 2 May 2014 07:52:24 UTC+1, Lee wrote: > > No, you were in the right locatin before. Look at your last scre

Re: I can't run django server nor activate the virtualenv

2014-05-01 Thread Lee
No, you were in the right locatin before. Look at your last screenshot. There was a file called requirements and you do it from there. If it does not work, please confirm what is in that requirements file -- You received this message because you are subscribed to the Google Groups "Django user

Re: I can't run django server nor activate the virtualenv

2014-05-01 Thread Fred DJar
yes i know because i've installed django before trying to work the virtualenv problem On Friday, 2 May 2014 01:05:20 UTC+1, Lee wrote: > > Also be aware that from the stack trace, it looks like you have django > installed into the global site packages rather than your virtualenv. The > main po

Re: I can't run django server nor activate the virtualenv

2014-05-01 Thread Fred DJar
so i'm in the directory /usr/local/lib/python2.7/dist-packages/django/core/management and now i should run the command pip install -r requirements and replace requirements with the missing file (for example base.py) is that it?? *i'm sorry if my questions seems dumb* On Friday, 2 May 2014 00:5

Re: I can't run django server nor activate the virtualenv

2014-05-01 Thread Lee
Also be aware that from the stack trace, it looks like you have django installed into the global site packages rather than your virtualenv. The main point of virtualenv is to avoid that and have isolated environments. But it's not really a problem as long as you are aware of the fact that you ar

Re: I can't run django server nor activate the virtualenv

2014-05-01 Thread Lee
Next command: pip install -r requirements >From the directory where the requirements file is of course... And assuming >the requirements file has all the requirements of whatever you are trying to >run in it -- You received this message because you are subscribed to the Google Groups "Django

Re: I can't run django server nor activate the virtualenv

2014-05-01 Thread Fred DJar
Lol, thanks that was super easy but now i have another problem, i'm missing some packages even though i'm in the virtualenv here is a screenshot demonstration On Monday, 28 April 2014 11:03:40

Re: I can't run django server nor activate the virtualenv

2014-05-01 Thread Lee
Enter the following command from the bin folder: *source activate* Thanks On Monday, 28 April 2014 11:03:40 UTC+1, Fred DJar wrote: > > > > > *Hello guys, i'm a newbie so bear with me :)I have installed python 2.7 > and django 1.6 on my desktop (ubuntu 14)but i can't run the application or > a

Re: I can't run django server nor activate the virtualenv

2014-05-01 Thread Fred DJar
Thank you for your response i've made a screenshot to illustrate clearly what happening btw i'm not familiar with virtualenv in ubuntu i've only used it on windows and in order to activate the virtualenv i just run the activate the command. maybe this is not the case in ubuntu!! maybe it shoul

Re: I can't run django server nor activate the virtualenv

2014-05-01 Thread Lee
Please be more specific about your problem as its difficult to help when we don't know exactly what you are seeing. Have you managed to activate your virtualenv on ubuntu? If not, what specific error are you getting? I see two problems here so far, regarding the import error, that means you are

Re: I can't run django server nor activate the virtualenv

2014-05-01 Thread Fred DJar
Iv'e run it on ubuntu terminal but still not working On Tuesday, 29 April 2014 14:35:39 UTC+1, Rene Zelaya wrote: > > Hi Fred, > > Yes, definitely, I think you should run it on a Ubuntu terminal - I'm not > that familiar with the Windows terminal > > > On Monday, April 28, 2014 10:10:29 AM UTC-4,

Re: I can't run django server nor activate the virtualenv

2014-04-29 Thread Rene Zelaya
Hi Fred, Yes, definitely, I think you should run it on a Ubuntu terminal - I'm not that familiar with the Windows terminal On Monday, April 28, 2014 10:10:29 AM UTC-4, Fred DJar wrote: > > Thanks Rene > The virtualenv was created in Ubuntu but now i'm running windows, should i > run it in Ubun

Re: I can't run django server nor activate the virtualenv

2014-04-28 Thread Fred DJar
Thanks Rene The virtualenv was created in Ubuntu but now i'm running windows, should i run it in Ubuntu because i've noticed that virtualenv folder structure differentiate from Ubuntu to windows this is the message i got from the prompt command: activate is not recognized as an internal or exter

Re: I can't run django server nor activate the virtualenv

2014-04-28 Thread Rene Zelaya
Hi Fred - So if you can't activate your virtualenv, and you installed Django in that virtualenv, that is likely the root of your problem, because without it, none of the modules will appear as installed and you will not be able to run the server (or access the python manage.py shell, etc). I

Re: I can't run django server nor activate the virtualenv

2014-04-28 Thread Fred DJar
There is one other line: ImportError : No module named bootstrapform On Monday, 28 April 2014 11:34:35 UTC+1, Victor Hooi wrote: > > Hi Fred, > > Are there any lines *below* the error message you pasted? > > The last line I can see is: > > File "/usr/local/lib/python2.7/dist-packages/django/utils/

Re: I can't run django server nor activate the virtualenv

2014-04-28 Thread Victor Hooi
Hi Fred, Are there any lines *below* the error message you pasted? The last line I can see is: File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", > line 40, in import_module __import__(name) Is there anything else? Cheers, Victor On Monday, 28 April 2014 03:03:40

I can't run django server nor activate the virtualenv

2014-04-28 Thread Fred DJar
*Hello guys, i'm a newbie so bear with me :)I have installed python 2.7 and django 1.6 on my desktop (ubuntu 14)but i can't run the application or activate the virtualenv* *this is the message i got:* ubuntu@ubuntu:~/Downloads/saf$ python manage.py runserver Traceback (most recent call last):

Re: newbie help with console, can't run Django function

2011-01-27 Thread Sam Lai
On 27 January 2011 14:26, Casual Coder wrote: > Is there a way to see what all got imported from django? In Python, you can see what is available in each imported module by using the dir function, e.g. >>> import django >>> dir(django) ['VERSION', '__builtins__', '__doc__', '__file__', '__name

Re: newbie help with console, can't run Django function

2011-01-27 Thread Casual Coder
Thanks Mike & Russ, I was using 0.96 for development with Google App Engine. Stubbornly. I really didn't HAVE to use GAE. I picked it as a hosting & auth headstart. My rampup has been embarrassingly slow (Python, Django, Eclipse newbie) so I think I'll switch over to a newer version of Django

Re: newbie help with console, can't run Django function

2011-01-26 Thread Russell Keith-Magee
On Thu, Jan 27, 2011 at 12:22 PM, Mike Dewhirst wrote: > On 27/01/2011 2:35pm, Casual Coder wrote: > > import django > django.VERSION >> >> (0, 96.406, None) >> > django.get_version() >> >> Traceback (most recent call last): >>   File "", line 1, in >> AttributeError: '

Re: newbie help with console, can't run Django function

2011-01-26 Thread Mike Dewhirst
On 27/01/2011 2:35pm, Casual Coder wrote: import django django.VERSION (0, 96.406, None) django.get_version() Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute 'get_version' Maybe Django version 0.96 didn't use a get_vers

Re: newbie help with console, can't run Django function

2011-01-26 Thread Casual Coder
>>> import django >>> django.VERSION (0, 96.406, None) >>> django.get_version() Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute 'get_version' -- You received this message because you are subscribed to the Google Groups "Djan

Re: newbie help with console, can't run Django function

2011-01-26 Thread Casual Coder
Mike I appreciate your answers and am trying them lots of ways. Still not getting that Django linkage in my console. >>> import django >>> django.get_version() Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute 'get_version' Is there a way

Re: newbie help with console, can't run Django function

2011-01-26 Thread Mike Dewhirst
On 27/01/2011 1:02pm, Casual Coder wrote: Thanks Mike. But Darn I'm not as powerful as I had hoped. I expected DUMPDATA to work the same way, but it doesn't. How did VERSION work? VERSION didn't actually "work". It is a constant which is an attribute of django. Bear in mind that django is

Re: newbie help with console, can't run Django function

2011-01-26 Thread Casual Coder
Thanks Mike. But Darn I'm not as powerful as I had hoped. I expected DUMPDATA to work the same way, but it doesn't. How did VERSION work? and why doesn't django-admin.py dumpdata work? >>> django-admin.py dumpdata File "", line 1 django-admin.py dumpdata ^ Sy

Re: newbie help with console, can't run Django function

2011-01-26 Thread Casual Coder
On Jan 26, 8:13 pm, Mike Dewhirst wrote: >  >>> from django import VERSION >  >>> VERSION > (1, 3, 0, 'alpha', 1) Ah. That works. I have suddenly become quite powerful. Thanks! -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

Re: newbie help with console, can't run Django function

2011-01-26 Thread Mike Dewhirst
On 27/01/2011 12:02pm, Casual Coder wrote: I'd like to get handy with using the console. Do I have a setup problem or a usage problem? >>> from django import VERSION >>> VERSION (1, 3, 0, 'alpha', 1) >>> See following pydev console output. Am I not able to run get_version() like that?

newbie help with console, can't run Django function

2011-01-26 Thread Casual Coder
I'd like to get handy with using the console. Do I have a setup problem or a usage problem? See following pydev console output. Am I not able to run get_version() like that? Thanks... >>> import sys; print('%s %s' % (sys.executable or sys.platform, sys.version)) C:\Python25\python.exe 2.5.4

Re: Can't run Django from the command line using just "manage.py runserver", following attempt to install Python2.6 on windows 7.

2009-12-01 Thread Rodrigo Cea
Hi Ken, thanks for your response, I get the exact same results as you, .py=Python.File and Python.File="C:\Python25\python.exe" "%1" %* Thanks, Rodrigo On Dec 1, 11:49 am, Ken MacDonald wrote: > Hi, > Check this out - on my XP system anyway (understand it hasn't changed much > for W7) use the

Re: Can't run Django from the command line using just "manage.py runserver", following attempt to install Python2.6 on windows 7.

2009-12-01 Thread Ken MacDonald
Hi, Check this out - on my XP system anyway (understand it hasn't changed much for W7) use the 'assoc' and 'ftype' commands to find out what ".py" is doing on your system. It should look something like this, except for file paths appropriate for your system. If your ftype is messed up (missing the

Re: Can't run Django from the command line using just "manage.py runserver", following attempt to install Python2.6 on windows 7.

2009-12-01 Thread Rodrigo Cea
Thanks for the response. Doing some more tests python programs do work, they just seem to not recieve sys.argv. The results of calling "manage.py runserver" is the same as calling just "manage.py". Other simple scripts bear this out. Thanks, Rodrigo On Dec 1, 6:32 am, John M wrote: > Sounds li

Re: Can't run Django from the command line using just "manage.py runserver", following attempt to install Python2.6 on windows 7.

2009-12-01 Thread John M
Sounds like the .py extension isn't seen as using python, should be an easy fix. Check your file associations (where they are in Win7) I'll have to find at work tomorrow, but that should fix your issue. Or, it could be some new security scheme that MS has come up with to not allow associations at

Can't run Django from the command line using just "manage.py runserver", following attempt to install Python2.6 on windows 7.

2009-11-30 Thread Rodrigo Cea
Following an abortive attempt to install Python2.6 on Windows 7, I can't run the Django dev server without prepending "python" before "manage.py runserver". I tried recently to install Python2.6 on a windows 7 system that already has python 2.5 installed. I had problems running some Django applica

Re: can't run django on uBUNTU

2009-03-18 Thread Dodol Garut
On 3/19/09, jayvandal wrote: > > I downloaded Django Django-1.0.2.tar.gz. > I tried to install by clicking on the by opening it and then extract > it. > i run python installand get no error messages. > I get the notice I am in Python > > I try to run Django-admin.py and get an error. > >

can't run django on uBUNTU

2009-03-18 Thread jayvandal
I downloaded Django Django-1.0.2.tar.gz. I tried to install by clicking on the by opening it and then extract it. i run python installand get no error messages. I get the notice I am in Python I try to run Django-admin.py and get an error. It does not seem to recognize Django I run the

Re: FIXED: Can't run django on Apache

2009-03-18 Thread Bro
What's the best way to do it ? I don't understand the official tutorial --~--~-~--~~~---~--~~ 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 unsub

Re: FIXED: Can't run django on Apache

2009-03-18 Thread Bro
Thanks Graham !! It works perfectly, you own :) Bro --~--~-~--~~~---~--~~ 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 g

Re: FIXED: Can't run django on Apache

2009-03-17 Thread Graham Dumpleton
Either way, their dango.root setting is wrong as they are setting it to physical file system path. Remove that whole django.root setting as you do not need it when mounting at root of site. The sooner people stop using mod_python the better. ;-) Graham On Mar 18, 12:41 pm, Karen Tracey wrote:

Re: FIXED: Can't run django on Apache

2009-03-17 Thread Karen Tracey
On Tue, Mar 17, 2009 at 1:54 PM, Bro wrote: > > [snip] > File "/var/lib/python-support/python2.5/django/core/handlers/ > base.py", line 44, in load_middleware >raise exceptions.ImproperlyConfigured, 'Middleware module "%s" > does not define a "%s" class' % (mw_module, mw_classname) > > Imp

Re: FIXED: Can't run django on Apache

2009-03-17 Thread Bro
Hi I've installed Django 1.02 on my dedibox. I'm trying to make .py file readable and executable. Apache, Python, Django are installed. We have many website : /var/www/mysite1 /var/www/mysite2 /var/www/mysite3 we have : /var/django/mysite1 /var/django/mysite2 We configure in /etc/apache2/site-a

Re: FIXED: Can't run django on Apache

2009-03-17 Thread Bro
The result is : SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonOption django.root /home/rex/django/mturk PythonDebug On PythonPath "['/home/rex/django/'] + sys.path"

FIXED: Can't run django on Apache

2009-03-15 Thread Rex
On Mar 14, 7:52 pm, Rex wrote: > On Mar 4, 12:47 pm, John Maines wrote: > > > > > Hello: > > > I've installed Django 1.0 on Ubuntu and am trying to get it to run on > >Apache.Apacheis installed, working fine, with mod-python also in > > place. I'm new at everything Linux. > > > But when I try

Re: Can't run django on Apache

2009-03-14 Thread Malcolm Tredinnick
On Sat, 2009-03-14 at 19:52 -0700, Rex wrote: [...] > > SetHandler python-program > PythonHandler django.core.handlers.modpython > SetEnv DJANGO_SETTINGS_MODULE mysite.settings > PythonOption django.root /home/rex/django/mturk *sigh* Will people please stop *guess

Re: Can't run django on Apache

2009-03-14 Thread Rex
On Mar 4, 12:47 pm, John Maines wrote: > Hello: > > I've installed Django 1.0 on Ubuntu and am trying to get it to run on > Apache. Apache is installed, working fine, with mod-python also in > place. I'm new at everything Linux. > > But when I try to run my app (a test blog), Apache gives an > Im

Re: Can't run django on Apache

2009-03-09 Thread jai
just put this line in (/etc/apache2/sites-enabled/000-default) SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonInterpreter mysite Py

Re: Can't run django on Apache

2009-03-06 Thread xankya
One thing I noticed in my windows and sun solaris is that, there is no trailing slash in python paths. When I added trailing slash, apache showed error. So you might as well try removing trailing slash in python paths. --~--~-~--~~~---~--~~ You received this message

Re: Can't run django on Apache

2009-03-04 Thread Danny Brown
l Message- > From: django-users@googlegroups.com > [mailto:django-us...@googlegroups.com]on Behalf Of xankya > Sent: Wednesday, March 04, 2009 4:28 PM > To: Django users > Subject: Re: Can't run django on Apache > > > > I guess u need to set python path to mysit

RE: Can't run django on Apache

2009-03-04 Thread Maines, John
bject: Re: Can't run django on Apache I guess u need to set python path to mysite plus django folders In httpd.conf: SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE settings PythonDebug On PythonPath "['pa

Re: Can't run django on Apache

2009-03-04 Thread xankya
I guess u need to set python path to mysite plus django folders In httpd.conf: SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE settings PythonDebug On PythonPath "['path to mysite', 'path to django'] + sys.path" --~--~--

Can't run django on Apache

2009-03-04 Thread John Maines
Hello: I've installed Django 1.0 on Ubuntu and am trying to get it to run on Apache. Apache is installed, working fine, with mod-python also in place. I'm new at everything Linux. But when I try to run my app (a test blog), Apache gives an ImportError message (below) I have come across NUMEROUS

Re: Can't run Django. Getting error message about no module named _md5

2007-06-28 Thread Rob Hudson
Python 2.5 uses hashlib and no longer has a module "md5". There's at least 1 patch dealing with this for users and passwords: http://code.djangoproject.com/ticket/3604 Though the "_md5" doesn't seem right either. -Rob On Jun 27, 6:58 am, jeffself <[EMAIL PROTECTED]> wrote: > Just updated Djang

Can't run Django. Getting error message about no module named _md5

2007-06-27 Thread jeffself
Just updated Django to latest version. I'm running it on a Mac Book Pro with Python 2.5.1 from the MacPorts packaging system. When I run 'python manage.py runserver', I get the following error: ImportError: No module named _md5 I have a feeling this may be more of a python problem than Django,