Sam, thanks for your help. Problem solved, partly with your advice. I
had two versions of Python on the same machine, and they were
interacting oddly. The 2.6 was being used when I type "python" at the
command line, but the 3.1 was being invoked for .py filetypes at the
CMD prompt.
Best wishes,
N
On 3 February 2010 12:28, Nick Mellor wrote:
> Hi,
>
> Trying to get started with Django on Windows XP. Trying to create a
> project. Fails with:
>
> ImportError: No module named django.core
>
> Have grabbed djtrunk from svn. The same error, whether I have run
> setup.py or not (originally I didn'
Hi,
Trying to get started with Django on Windows XP. Trying to create a
project. Fails with:
ImportError: No module named django.core
Have grabbed djtrunk from svn. The same error, whether I have run
setup.py or not (originally I didn't, as per the svn install
instructions.)
Python: 2.6
c:\pyth
I think I'll take the nuclear option, and start over -- this has
turned into a complete mess. Thanks, and sorry for wasting time...
On Dec 16, 7:48 am, Nianbig <[EMAIL PROTECTED]> wrote:
> Problem solved..
>
> The problem seemed to be that I had two models called "events" in
> "events.event.views
Problem solved..
The problem seemed to be that I had two models called "events" in
"events.event.views.events.index".. after renaming the one of the
modules and deleteing a events.pyc-file that had been auto-created it
works fine again!
/Nianbig
On Dec 16, 12:27 am, Nianbig <[EMAIL PROTECTED]>
The weird thing is that I can reach from events.event.models import
Events from a module outside "event".. events.user for example.. but
not inside...
This is what my urls.py looks like if that could be of any help:
from django.conf.urls.defaults import *
urlpatterns = patterns('',
(r'^
I´m having the same problem as well...
Yes, permissions are set so that the web server has access to read the
entire directory tree.
/Nianbig
On Dec 14, 3:53 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> Are the permissions set so that the web server has access to read the entire
> tree under
Are the permissions set so that the web server has access to read the entire
tree under '/home/me/webapps/django'?
Karen
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, se
not sure what's going on here..I haven't been able to replicate this
on my system.
Jim
On Dec 14, 12:30 am, Eric Abrahamsen <[EMAIL PROTECTED]> wrote:
> On Dec 14, 1:21 pm, jim <[EMAIL PROTECTED]> wrote:
>
> > what does ur urls.py look like? is everything imported correctly
> > there...
>
> > Ji
On Dec 14, 1:21 pm, jim <[EMAIL PROTECTED]> wrote:
> what does ur urls.py look like? is everything imported correctly
> there...
>
> Jim
I think so, I don't use generic views so there's hardly anything in
there. Here's the top of the file:
from django.conf.urls.defaults import *
urlpatterns = p
what does ur urls.py look like? is everything imported correctly
there...
Jim
On Dec 14, 12:09 am, Eric Abrahamsen <[EMAIL PROTECTED]> wrote:
> > then open an interpreter and try importing each of the modules
> > individually.
>
> > the resulting error messages should probably lead u t the solu
for the static media part..u probably need this added to ur config...
SetHandler none
Jim
On Dec 14, 12:09 am, Eric Abrahamsen <[EMAIL PROTECTED]> wrote:
> > then open an interpreter and try importing each of the modules
> > individually.
>
> > the resulting error messages should probably
Here's the top section of the traceback, this could be relevant:
MOD_PYTHON ERROR
ProcessId: 4468
Interpreter:'pr.ericabrahamsen.net'
ServerName: 'pr.ericabrahamsen.net'
DocumentRoot: '/home/me/webapps/django'
URI:'/'
Location: '/'
Directory: None
Filename
> then open an interpreter and try importing each of the modules
> individually.
>
> the resulting error messages should probably lead u t the solution...
Nope, all that works fine. Going step by step:
>>> from myproject import app1
>>> from myproject import app2
>>> from app1 import models as m
Alternatively u can do this:
python manage.py shell
this will set up a shell with the necessay variables defined...
Jim
On Dec 13, 11:38 pm, jim <[EMAIL PROTECTED]> wrote:
> set ur environment variable DJANGO_SETTINGS_MODULE to 'settings' eg.
>
> export DJANGO_SETTINGS_MODULE=.settings
>
> th
set ur environment variable DJANGO_SETTINGS_MODULE to 'settings' eg.
export DJANGO_SETTINGS_MODULE=.settings
then open an interpreter and try importing each of the modules
individually.
the resulting error messages should probably lead u t the solution...
Jim
On Dec 13, 11:03 pm, Eric Abraham
Yup. The whole project directory tree from myproject on down is
exactly what it has been on my local system (with the exception of
settings.py), which has always worked fine using the django
development server. That's why this is so mysterious to me.
On Dec 14, 11:58 am, jim <[EMAIL PROTECTED]>
do u have a __init__.py in the directory containing app1 and app2?
Jim
On Dec 13, 10:33 pm, Eric Abrahamsen <[EMAIL PROTECTED]> wrote:
> I just put my local django development setup up onto my web host, and
> am trying to make all the necessary adjustments. So far I haven't been
> able to get t
I just put my local django development setup up onto my web host, and
am trying to make all the necessary adjustments. So far I haven't been
able to get the views to work. I've got:
myproject.app1
myproject.app2
The basic index view lives in myproject.app1.views. When I try to
visit the index, I
On 12/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Over in the functions_db.py file, I need access to the Object class. So
> I'm doing a 'from myproject.apps.objects.models import Object'.
Is it named 'Object' or 'object'? If it's the latter, you may run into
even more serious problems do
[EMAIL PROTECTED] wrote:
> Sorry if this is poorly explained, but how do you efficiently get
> around circular dependency problems like this in Python? I'd hate to
> have to drop my import of functions_db to the individual methods on
> "Object" to avoid whatever collision is happening.
Another (i
This is somewhat of a general Python question I guess, but I've only
noticed it when playing with Django.
I've got a class named 'Object' that resides on
myproject/apps/objects/models.py, this has some class methods that are
in another module located at myproject/functions_db.py. So I'm doing an
On Sun, 2006-10-15 at 09:52 +, a wrote:
> I m trying to import these legacy databases into the dbadmin system of
> django
> thanks for any help
>
> CREATE TABLE choices
> (
> id serial NOT NULL,
> poll_id int4 NOT NULL,
> choice text,
> vote int4 NOT NULL DEFAULT 0,
> created timest
I m trying to import these legacy databases into the dbadmin system of
django
thanks for any help
CREATE TABLE choices
(
id serial NOT NULL,
poll_id int4 NOT NULL,
choice text,
vote int4 NOT NULL DEFAULT 0,
created timestamp DEFAULT now(),
CONSTRAINT choices_pkey PRIMARY KEY (id),
C
24 matches
Mail list logo