God.. How stupid I am ? Everytime I encounter you I am safe. thanks a
lot........ I am getting the page.
So how to make apache server media files?

In httpd.conf I added the Location directive to the project directory
is it enough...


On Nov 8, 12:16 am, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> On Nov 8, 7:13 pm, stranger <[EMAIL PROTECTED]> wrote:
>
> > Ya mapper is an application in crimemap project. There is an empty
> > __init.py__ file.
> > Currenly this is the only url i am using..
>
> > (r'^crime/([a-zA-Z]+)', crimemap.mapper.views.crime_by_type),
>
> Put quotes around the second value in the tuple:
>
> (r'^crime/([a-zA-Z]+)', 'crimemap.mapper.views.crime_by_type'),
>
> >http://localhost:8000/crime/arson
>
> > should yield me the resulting view but i am getting an error I
> > mentioned above
>
> > On. Nov 8, 12:08 am, Graham Dumpleton <[EMAIL PROTECTED]>
> > wrote:
>
> > > Are you saying the directory hierarchy is:
>
> > >   /home/priya/projects/crimemap
> > >   /home/priya/projects/crimemap/mapper
>
> > > What is the full contents of urls.py?
>
> > > If 'mapper' is a subdirectory of 'crimemap', does that directory
> > > contain at least an empty __init__.py file?
>
> > > Graham
>
> > > On Nov 8, 7:02 pm, stranger <[EMAIL PROTECTED]> wrote:
>
> > > > Hello Graham,
>
> > > >          I tried the method u told me...But still the same result. Let
> > > > me clear a few things. I created a new project "crimemap" in /home/
> > > > priya/projects/
> > > > and app "mapper" inside crimemap. Now I am getting an error when i run
> > > > the server. python manage.py runserver
>
> > > > Error while importing URLconf 'crimemap.urls': name 'crimemap' is not
> > > > defined
> > > > Request Method:         GET
> > > > Request URL:    http://localhost:8000/
> > > > Exception Type:         ImproperlyConfigured
> > > > Exception Value:        Error while importing URLconf 'crimemap.urls': 
> > > > name
> > > > 'crimemap' is not defined
> > > > Exception Location:     /usr/lib/python2.5/site-packages/django/core/
> > > > urlresolvers.py in _get_urlconf_module, line 255
> > > > Python Executable:      /usr/bin/python
> > > > Python Version:         2.5.0
>
> > > > On Nov 7, 11:38 pm, Graham Dumpleton <[EMAIL PROTECTED]>
> > > > wrote:
>
> > > > > Check the file and directory permissions like suggested when you were
> > > > > first trying to setup your site, this time looking at any new files
> > > > > and directories you have added within your site area. They should have
> > > > > permissions so they are readable to Apache.
>
> > > > > Graham
>
> > > > > On Nov 8, 6:32 pm, stranger <[EMAIL PROTECTED]> wrote:
>
> > > > > > Hello,
> > > > > >  I did the linking as you said:
> > > > > > ln -s /home/priya/projects/crimemap 
> > > > > > /usr/lib/python2.5/site-packages/
> > > > > > crimemap
>
> > > > > > Also I restarted Apache, but nno change....
>
> > > > > > ImproperlyConfigured at /crime/arson/
> > > > > > Error while importing URLconf 'crimemap.urls': name 'crimemap' is 
> > > > > > not
> > > > > > defined
> > > > > > Request Method:         GET
> > > > > > Request URL:    http://localhost:8000/crime/arson/
> > > > > > Exception Type:         ImproperlyConfigured
> > > > > > Exception Value:        Error while importing URLconf 
> > > > > > 'crimemap.urls': name
> > > > > > 'crimemap' is not defined
> > > > > > Exception Location:     
> > > > > > /usr/lib/python2.5/site-packages/django/core/
> > > > > > urlresolvers.py in _get_urlconf_module, line 255
> > > > > > Python Executable:      /usr/bin/python
> > > > > > Python Version:         2.5.0
>
> > > > > > On Nov 7, 11:16 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
>
> > > > > > > On 08-Nov-07, at 12:34 PM, stranger wrote:
>
> > > > > > > > Can you please tell me how to put crimemap on path. What is sym-
> > > > > > > > linking? Can you explain briefly?
>
> > > > > > > as root, at the prompt type:
> > > > > > > ln -s /pathtocrimemap/crimemap 
> > > > > > > /usr/lib/python2.x/site-packages/crimemap
> > > > > > > and press enter
>
> > > > > > > for the 'x' for python2.x, put your python version (3,4 or 5)
> > > > > > > for further information, do man ln
>
> > > > > > > --
>
> > > > > > > regards
> > > > > > > kghttp://lawgon.livejournal.comhttp://nrcfosshelpline.in/web/


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to