Re: A question about templates and search.
Oh yea, thanks, i was a bit confused. I see what I can do now. Andrew On 24 Feb, 09:02, Daniel Roseman <roseman.dan...@googlemail.com> wrote: > On Feb 23, 10:51 pm, djandrow <andrewkenyon...@gmail.com> wrote: > > > Yea, the code that processes the search and returns the results. > > Does it not need to go in views.py? Could i just import it? > > Import it where? Presumably, even though you have a search box on > every page, when you submit a search (no matter where from) you will > be taken to one single page which shows the results. That can live on > its own url, with its own view. > -- > DR. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
A question about templates and search.
Hello, Each of the html pages on my site extends base.html but i'm trying to get a search box going which will appear on each page. So this will go on the base.html template. Since base.html is never called except through other templates. In what view should the code for this go in, i can't imangine it would have to go in every view would it? Thanks Andrew --~--~-~--~~~---~--~~ 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: My app is missing!
Thanks Tim, I got it sorted out. On Feb 19, 3:39 pm, Timwrote: > The problem is that you are using the manage.py that is in the > project_template directory, which will load the settings.py file from > the project_template directory. > > You need to use the manage.py that is in the akonline directory, so > that the proper settings.py file is loaded. --~--~-~--~~~---~--~~ 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: My app is missing!
I may just try creating a new app and see if that works and if it does just copy the things over. --~--~-~--~~~---~--~~ 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: My app is missing!
I am: C:\Program Files\Apache2.2\akonline>python "C:\ProgLangs\Python25\Lib \site-packa ges\django\conf\project_template\manage.py" sqlall blog Error: App with label blog could not be found. Are you sure your INSTALLED_APPS setting is correct? On Feb 18, 9:00 pm, Malinka Rellikwodahs <aelmali...@gmail.com> wrote: > my first gues would be you are not in the akonline folder > > On Wed, Feb 18, 2009 at 15:54, djandrow <andrewkenyon...@gmail.com> wrote: > > > Hello all, > > > I've been trying to add a few extra fields to my model, as part of my > > blog app. So then I tried sqlall: > > > python "C:\ProgLangs\Python25\Lib\site-packages\django\conf > > \project_template\manage.py" sqlall blog > > > theres another thread about why i've included the path, but i don't > > see why it should make a difference. Anyway, when i run that i get > > this error message. > > > Error: App with label blog could not be found. Are you sure your > > INSTALLED_APPS > > setting is correct? > > > my installed apps looks like this ; > > > INSTALLED_APPS = ( > > 'django.contrib.auth', > > 'django.contrib.contenttypes', > > 'django.contrib.sessions', > > 'django.contrib.sites', > > 'django.contrib.admin', > > 'akonline.blog', > > ) > > > it exists in akonline/blog and i created it in the proper way so can > > someone explain why i get an error? Or are there some things i can try > > to see whats going on? > > > Thanks, > > > Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
My app is missing!
Hello all, I've been trying to add a few extra fields to my model, as part of my blog app. So then I tried sqlall: python "C:\ProgLangs\Python25\Lib\site-packages\django\conf \project_template\manage.py" sqlall blog theres another thread about why i've included the path, but i don't see why it should make a difference. Anyway, when i run that i get this error message. Error: App with label blog could not be found. Are you sure your INSTALLED_APPS setting is correct? my installed apps looks like this ; INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'akonline.blog', ) it exists in akonline/blog and i created it in the proper way so can someone explain why i get an error? Or are there some things i can try to see whats going on? Thanks, Andrew --~--~-~--~~~---~--~~ 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: Python Versions and manage.py
I've had some success by specifying the path manually python "C:\ProgLangs\Python25\Lib\site-packages\django\conf \project_template\manage.py" sqlall I'm still getting an error but i'm 90% sure its unrelated. Thanks, Andrew On Feb 18, 4:00 pm, Alex Gaynor <alex.gay...@gmail.com> wrote: > On Wed, Feb 18, 2009 at 10:44 AM, djandrow <andrewkenyon...@gmail.com>wrote: > > > > > > > Hello, > > > I have python 2.5 and 2.6 installed on my computer and when i try to > > run manage.py sqlall I get an error: > > > raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e) > > django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb > > module: Module use of python25.dll conflicts with this version of > > Python. > > > This is because it is using python 2.6 and the mysql backend is for > > 2.5, there isn't an exe backend for windows. > > > I'm using the command line and want to know how i can change the > > python versions. I have my system path set up for 2.5 so I don't know > > what effect that has. > > > Would it be possible to just list the path in the command line when i > > run manage.py? since other commands don't have this problem > > > Andrew > > I'm not super familiar with how windows handles it's path, but if you do > ./manage.py on unix it will use your default python installed, however you > can also do python manage.py or python2.5 manage.py or python2.6 manage.py > to specify which version to use. Hopefully that helps somewhat. > > Alex > > -- > "I disapprove of what you say, but I will defend to the death your right to > say it." --Voltaire > "The people's good is the highest law."--Cicero --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Python Versions and manage.py
Hello, I have python 2.5 and 2.6 installed on my computer and when i try to run manage.py sqlall I get an error: raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e) django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: Module use of python25.dll conflicts with this version of Python. This is because it is using python 2.6 and the mysql backend is for 2.5, there isn't an exe backend for windows. I'm using the command line and want to know how i can change the python versions. I have my system path set up for 2.5 so I don't know what effect that has. Would it be possible to just list the path in the command line when i run manage.py? since other commands don't have this problem Andrew --~--~-~--~~~---~--~~ 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: Dhango help
The documents have a first steps section and other sections may inspire you as well http://docs.djangoproject.com/en/dev/ hope that helps Andrew On Feb 18, 3:19 pm, "s.sudharsan siva"wrote: > Hii am new to Django we are planning to show a demo on Django on FOss > conf09.. can any one help with how to start with Django and what to demo > -- > With Regards > S.Sudharsan --~--~-~--~~~---~--~~ 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: where's our poll app?
Did you create the models and is the database correctly configured in settings.py? On 10 Feb, 22:55, Tim Johnsonwrote: > It's not displayed on the admin index page. > > From the Tutorial > at:http://docs.djangoproject.com/en/dev/intro/tutorial02/#intro-tutorial02 > > Name of the project is phhsite > from phhsite ran python manage.py startapp polls > directory was created. > Then created the admin file > Restarted the server by first pressing Ctrl-C > then invoking python manage.py runserver > No sign of any application call polls. > polls/admin.py looks like this: > ##--- > from phhsite.polls.models import Poll > from django.contrib import admin > > admin.site.register(Poll) > ## added the following as a test > 1 / 0 > ## the 1 / 0 is deliberate, > ## If django found this file, I should have seen an error > > Using python 2.5 on kubuntu 7.10 > What have I overlooked? > Thanks > Tim --~--~-~--~~~---~--~~ 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: Another thread about static content
I've move it just to the apache2.2 file so my conf is now: Options Indexes FollowSymLinks SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE akonline.settings PythonOption django.root /akonline PythonDebug On PythonPath "['C:/Program Files/Apache2.2'] + sys.path" Order Allow,Deny Allow from all SetHandler None Alias /media/ "C:/Program Files/Apache2.2/akonline/templates/blogSite/ media/" SetHandler None But i'm still having the same problems Andrew --~--~-~--~~~---~--~~ 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: Another thread about static content
So would it be best to move my project somewhere else? On 10 Feb, 21:48, Ramiro Morales <cra...@gmail.com> wrote: > On Tue, Feb 10, 2009 at 7:40 PM, djandrow <andrewkenyon...@gmail.com> wrote: > > > Hello all, > > > I know theres alot of threads like this out there but I'm still > > struggling. I've got a simple html template which i access through a > > view: > > > > > > > > > > the template is in C:/Program Files/Apache2.2/htdocs/akonline/ > > templates/blogSite > > and the image is then in blogSite/media > > > then in my conf I have: > > > > > SetHandler python-program > > PythonHandler django.core.handlers.modpython > > SetEnv DJANGO_SETTINGS_MODULE akonline.settings > > PythonOption django.root /akonline > > PythonDebug On > > PythonPath "['C:/Program Files/Apache2.2/htdocs'] + sys.path" > > > > > > blogSite/media/"> > > Order Allow,Deny > > Allow from all > > SetHandler None > > > > > Alias /media/ "C:/Program Files/Apache2.2/htdocs/akonline/templates/ > > blogSite/media/" > > > > > SetHandler None > > > > > I'm using mod_python and Windows XP, I have the same setup (with > > different locations and directories) on my linux host and it works > > fine. So whats going on. I would be grateful for any help. > > Problem with this is how doas Apache what rule should it apply when > it come to server something under /akonline or /media > The one set by the > > DocumentRoot C:/Program Files/Apache2.2/htdocs > > directive ? or the one set by the Alias or Location > blocks/directives above?. > > It is really better for you and for anybody trying to help > you if you follow some basic common sense practices > because it isn't very practical having to set up > a test Django app under one's Apache document root > just to reproduce your setup. > > -- > Ramiro Morales --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Another thread about static content
Hello all, I know theres alot of threads like this out there but I'm still struggling. I've got a simple html template which i access through a view: the template is in C:/Program Files/Apache2.2/htdocs/akonline/ templates/blogSite and the image is then in blogSite/media then in my conf I have: SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE akonline.settings PythonOption django.root /akonline PythonDebug On PythonPath "['C:/Program Files/Apache2.2/htdocs'] + sys.path" Order Allow,Deny Allow from all SetHandler None Alias /media/ "C:/Program Files/Apache2.2/htdocs/akonline/templates/ blogSite/media/" SetHandler None I'm using mod_python and Windows XP, I have the same setup (with different locations and directories) on my linux host and it works fine. So whats going on. I would be grateful for any help. Thank you, Andrew PS. I know your not supposed to put your project in htdocs but this is just on my PC so there aren't any security issuses. --~--~-~--~~~---~--~~ 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: Pretty admin pages
I believe its quite akward to create a system link in XP so I tried copying them to myproject/media file, but it didn't like that either. Should they go in the htdocs file or what? Thanks, Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Pretty admin pages
Hello all, I have just set up the admin pages for my site and if i use the built in server i get the admin with the nice templates, but if I display it on mod_python I just get the plain text, which is pretty hard to work with. I have these set up in the conf: SetHandler None SetHandler None and my setting py has: MEDIA_ROOT = '' MEDIA_URL = '' ADMIN_MEDIA_PREFIX = '/media/' what am i doing wrong or what have i missed? on a side note should i add CSS to my jpg|gif|png in my conf? many thanks, Andrew --~--~-~--~~~---~--~~ 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: Keep getting NameError at /admin/
You need to remove the # from: # from django.contrib import admin # admin.autodiscover() I had the same thing earlier. Heres some more stuff about setting up the admin if you want to read it: http://docs.djangoproject.com/en/dev/intro/tutorial02/#intro-tutorial02 On Feb 9, 11:24 pm, "claudio.br...@googlemail.com"wrote: > On 9 Feb, 19:16, Daniel Roseman wrote: > > > On Feb 9, 6:57 pm, "claudio.br...@googlemail.com" > > > wrote: > > > Hi Alex > > > > Yes I have the line from django.contrib import admin" in urls.py > > > You're going to need to post the whole urls.py. It's a bit hard to > > understand why you're getting that error if you do have that line, and > > it's not commented out. Please show us the whole file, preferably by > > posting it somewhere like dpaste.com. > > > -- > > DR. > > Okay I stripped everything else out of the urls.py and am left with > the following > > --- > > from django.conf.urls.defaults import * > > # Uncomment the next two lines to enable the admin: > # from django.contrib import admin > # admin.autodiscover() > > urlpatterns = patterns('', > # Example: > # (r'^mysite/', include('mysite.foo.urls')), > > # Uncomment the admin/doc line below and add > 'django.contrib.admindocs' > # to INSTALLED_APPS to enable admin documentation: > # (r'^admin/doc/', include('django.contrib.admindocs.urls')), > > # Uncomment the next line to enable the admin: > (r'^admin/(.*)', admin.site.root), > ) > > and I still get the same error > > K --~--~-~--~~~---~--~~ 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: A quick question about slug fields
Thanks Karen On Feb 9, 4:53 pm, Karen Tracey <kmtra...@gmail.com> wrote: > On Mon, Feb 9, 2009 at 11:50 AM, djandrow <andrewkenyon...@gmail.com> wrote: > > > I believe these days a statment like this has been depreciated: > > > post_slug = models.SlugField(prepopulate_from=('post_title',)) > > > I had a look through the docs but couldn't find the answer. > > How can you now specify which field the slug is created from? > > http://docs.djangoproject.com/en/dev/ref/contrib/admin/#prepopulated-... > > Karen --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
A quick question about slug fields
I believe these days a statment like this has been depreciated: post_slug = models.SlugField(prepopulate_from=('post_title',)) I had a look through the docs but couldn't find the answer. How can you now specify which field the slug is created from? thanks, Andrew --~--~-~--~~~---~--~~ 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: ImportError: Could not import settings 'mysite.settings'
Thanks Karen, I've got it all working now. Regards, Andrew On 6 Feb, 21:51, Karen Tracey <kmtra...@gmail.com> wrote: > On Fri, Feb 6, 2009 at 4:37 PM, djandrow <andrewkenyon...@gmail.com> wrote: > > > Hello, > > > I'm trying to get my django project going on mod_python (this all on > > on windows XP) > > However when I try to get my project going I get > > > ImportError: Could not import settings 'mysite.settings' (Is it on > > sys.path? Does it have syntax errors?): No module named > > mysite.settings > > > But I have this in my conf: > > > > > SetHandler python-program > > PythonHandler django.core.handlers.modpython > > SetEnv DJANGO_SETTINGS_MODULE mysite.settings > > PythonOption django.root /mysite > > PythonDebug On > > PythonPath "['C:/Program Files/Apache2.2/htdocs/mysite'] + > > sys.path" > > > > > What could be the cause of this, there is definetly a settings file? > > From reading other posts i got the impression this could be a > > permissions issue but I didn't know how to change permissions on > > windows and I wasn't sure that was the cause? > > > Could someone help me please? > > You've got the 'mysite' part in both the settings spec and the PythonPath. > Given what you have, Python will be looking for: > > C:/Program Files/Apache2.2/htdocs/mysite/mysite/settings.py > Then, when that is not found, everyplace else in sys.path + > mysite/settings.py > > If you are going to be including 'mysite' in your imports (and settings > spec), then don't include it in the PythonPath. Or, drop if from your > imports (and settings spec). (Or, include both the mysite directory and its > parent directory in your PythonPath, then you can mix inclusion of 'mysite' > in your imports with leaving it out willy-nilly, but that is rather messy. > Better to pick one alternative and stick with it.) > > Also, I'll repeat something I posted in another thread earlier today: > > BTW your earlier spec for the PythonPath directive you are using showed you > are putting your project code under the default Apache document root htdocs > -- that is a bad idea as it may make your source code (including sensitive > stuff like database password in settings.py) easily accessible from the web, > depending on exactly how you have Apache configured. Your Django project > source code does not need to be under Apache's document root, it simply > needs to be found via the PythonPath you specify in your Apache Location > block for your Django project. > > Karen --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
ImportError: Could not import settings 'mysite.settings'
Hello, I'm trying to get my django project going on mod_python (this all on on windows XP) However when I try to get my project going I get ImportError: Could not import settings 'mysite.settings' (Is it on sys.path? Does it have syntax errors?): No module named mysite.settings But I have this in my conf: SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonOption django.root /mysite PythonDebug On PythonPath "['C:/Program Files/Apache2.2/htdocs/mysite'] + sys.path" What could be the cause of this, there is definetly a settings file? >From reading other posts i got the impression this could be a permissions issue but I didn't know how to change permissions on windows and I wasn't sure that was the cause? Could someone help me please? Regards, Andrew --~--~-~--~~~---~--~~ 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: Where to place files on apache server.
Ok thanks, I will make sure I do that. Currently this is just on my PC so there aren't any security issues but I will make a note of it for later, thanks. Andrew --~--~-~--~~~---~--~~ 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: Where to place files on apache server.
So i set it in Environment Variable then System variables [this is on windows]: PythonPath -- C:\ProgLangs\Python26 But i still get File "C:\ProgLangs\Python25\Lib\site-packages\mod_python\importer.py", line 304, in import_module return __import__(module_name, {}, {}, ['*'])" How can I set the path to get it to look in the Python26? I have a feeling i'm being a bit slow here. Thanks, Andrew --~--~-~--~~~---~--~~ 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: Where to place files on apache server.
Thank you, i will try creating a symlink. I'm a bit confused about the PythonPath though, is the python path an environment variable or is it defined in the httpd conf or a 3rd place? I know I have: PythonPath "['C:/Program Files/Apache2.2/htdocs/myproject'] + sys.path" in the conf. But how does this specify where python is located and how can I change it? Regards, Andrew > The best solution(IMO), is to put it in some neutral location and to either > symlink it to both 2.5 and 2.6 or just add that location to your > PYTHONPATH(which is version neutral). > > Alex --~--~-~--~~~---~--~~ 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: Where to place files on apache server.
Thanks, that has helped me quite abit. But I still have one issue. When trying to look at the pages I create I get the following: Traceback (most recent call last): File "C:\ProgLangs\Python25\Lib\site-packages\mod_python \importer.py", line 1537, in HandlerDispatch default=default_handler, arg=req, silent=hlist.silent) File "C:\ProgLangs\Python25\Lib\site-packages\mod_python \importer.py", line 1202, in _process_target module = import_module(module_name, path=path) File "C:\ProgLangs\Python25\Lib\site-packages\mod_python \importer.py", line 304, in import_module return __import__(module_name, {}, {}, ['*']) ImportError: No module named django.core.handlers.modpython. This I guess is because I do not have django in my Python25 installation. It is installed within thePython 26 installation. Is there any way to easily change this or would it be easier for me just to install django with Python25 as well? Thank you --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Where to place files on apache server.
Hello everyone, I've recently installed apache and mod_python and i've managed to run a couple of python files, so i guess its working. I've also created a view, which displays a simple hello world message. I've tested this with the django server and it works. But i'm not sure how to get this to working with apache. I created a file in Htdocs then in that created the project with the views and urls.py and the others. But if I go on http://localhost:8080/myproject/hello or http://localhost:8080/myproject/hello/ I get a 404 not found error. I was wondering what I could do to fix this and whether I've made a mistake? thanks, Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Mod_python
I just bought a new laptop and want to install mod_python, is there a version which is compatible with Python 2.6, I tried the 2.5 version but it wouldn't let me install that with 2.6. If there isn't a 2.5 version what would people recommend I do? Thanks. Regards, Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: A question about spaces and passing variables...
Thanks Karen, its working fine now, Brian, I will have a look at slug fields, for now i'm trying just to get a basic site going, but then I'm going to try and come back and improve things so i will take a look at then then. Regards, Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: A question about spaces and passing variables...
So after messing around a for a couple of minutes I discovered the urlencode changes About Me to About%20Me, (if you are using firefox 3 or above it will still display "About Me" in the address bar, that confused me for a while). But now if i put in: url.net/blog/About%20Me/, it doesn't match this url pattern: ^blog/(?P\w+)/$ So how can i get this to match the patter? This is going to be one of those really obvious things, sorry i'm new to all this stuff. If someone could help that would be great. Regards Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: A question about spaces and passing variables...
Ok, thanks Karen, i;ll have a go with messing about. If someone else with more time could explain it to me that would be great, otherwise i'll just try playing about with it. regards, Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: A question about spaces and passing variables...
Thanks Karen, how does urlencode work though? I imangine its a filter, but what does it do? regards, Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
A question about spaces and passing variables...
I have a list of categories, which entries are filed into, then some can click a category link in a template and it will take them to a list of entries in that particular category. The problem is one of this categories is "About Me", what I have so far in my view is: current_entries = Entry.objects.filter(entry_cat__cat_name=category).order_by("- entry_date") Since you can't have a space in a url the I apply the following filter to the category name for the link: |cut:" "|lower This means the link location changes from url/About Me to url/aboutme, this now passes into the view fine, but obviously it won't match About Me in the database, from what i have gathered so far it seems to be case insensitive so the problem is the space. So, how can i get the URL to match whats in the database? thanks, Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Passing in a value from a url
Thanks Karen, it works fine now. regards, Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Passing in a value from a url
Here is my model for entry; class Entry(models.Model): entry_id = models.AutoField(primary_key=True) entry_date = models.DateField(auto_now_add=True) entry_title = models.CharField(max_length=70) entry_content = models.TextField(max_length=5000) entry_cat = models.ManyToManyField(Category) def __unicode__(self): return self.entry_title regards, Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Passing in a value from a url
Hi, I am currently trying to pass in a value from a url and the perform a query based on that, i've tried this: def category_view(request, category): current_entries = Entry.objects.filter(entry_cat=category).order_by("- entry_date") return render_to_response('blog/base.html', locals()) but I get this: Caught an exception while rendering: Truncated incorrect DOUBLE value: 'general' Is this because the value isn't a string, and how can I get it working, I know the value is being passed into the view correctly. Thanks, Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Template Inheritance Question
Its shared hosting so it could just be the file editor (which is built in) that they use causing it to happen if this doesn't happen to anyone else. If no one else is having the problem I would imangine that would be it. Thanks, Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Template Inheritance Question
I have a template, text that extend a template base. In my text template I have; {% extends 'base.html' %} {% block content %} SOME CODE {% endblock content %} Anyway, my question is when I enter this save it then stick it on my server, it adds closing tags at the bottom; and the Doctype stored in base,html on the top, is this the way i'm uploading the files or is it sommething to do with Django, and if so is there anyway to stop it? Its obviously impossible to pass the W3C validator if you have multiple closing tags and other stuff like that. Many thanks, Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Strange URL behavoir/problem
No, thats why its wierd, it just says; Page not found (404) Request Method: GET Request URL:http://www.url.net/2008/aug/ no other information at all, thts why its really strange. Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Strange URL behavoir/problem
I have the folling urls: (r'^(?P\d{4})/$', 'django.views.generic.date_based.archive_year', archive_info), (r'^(?P\d{4})/(?P[a-z]{3})/$', 'django.views.generic.date_based.archive_month', archive_info), and archive_info is: archive_info = { 'queryset' : Entry.objects.all(), 'date_field' : 'entry_date', 'template_name' : 'blog/archive.html', } The problem i am having is when i enter; myurl.net/2008/aug/ i get a 404 error, but not the one saying it doesn't match any url patters, theres two strange things about this, 1. if i do /2008/ without the month it works, fine every time, 2. about once in every 20 times it will work with myurl.net/2008/aug/ this to me seems very strange, that it work once every so often, and practically the same url /2008/ seems to work fine, even though the majority of information is the same. Does anyone have any possible ideas on theories on this, thanks Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: maxlength or max_length?
Thanks, its a shared server so I will have to enquire as to what is happening concerning the python path. Regards, Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
maxlength or max_length?
I'm currently using django Version: 1.0-final-SVN-9020 and python Version: 2.4.4, a few weeks ago (maybe a bit longer) I had to change all my maxlengths to max_length, as I believe that was a change in Django. Anyway now when i try and use manage.py validate I get: __init__() got an unexpected keyword argument 'max_length' however if i call parts of the model from the templates they work fine. So my question is what is going on? and what should i be using? Regards, Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Creating an Archive
I solved this problem, for those who come after me, you can use: Entry.objects.dates('entry_date', 'month', order='DESC') where entry is the name of the table/model and entry_date is the name of the date field. This returns a list of months with objects in. Thanks for everyone's help, Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Template problem with dates(field, kind, order='ASC')
Sorry, must have forgotton that part, it just wasn't displaying anything, its was cos I was archive.datetime, when archive was already a dateime object. Now I've changed it to {{ archive }} its fine. Thanks guys, Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Template problem with dates(field, kind, order='ASC')
This is probably really really obvious. I have the following statement in my views.py: archive_list = Entry.objects.dates('entry_date', 'month', order='DESC') then I have; {% for archive in archive_list %} {{ archive.datetime }} {% endfor %} in my template, i am 99.9% my problem is with {{ archive.datetime }}. Any help would be much appreciated, Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Creating an Archive
Do i need to pass the months into the view using extra_context? Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Creating an Archive
Thanks Russ, I'm still abit confused about the first part, I understand it prints 2008-01-01, because its printing the years with entries in them, and 2008 is the only year with entries, but rather than get it to show all the years with entries I want it to show all the months with entries in. I had a look at the documentation: http://docs.djangoproject.com/en/dev/ref/generic-views/#django-views-generic-date-based-archive-index I am none the wiser though, how do I pass the months into the view? I appreciate the help on the date format and the views, thanks, Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Creating an Archive
Can no one help me with either of my questions? I'd really like to this sorted. Thanks, Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Creating an Archive
Hello, I currently have a website which I am trying to add an archive to, i currently have the following date based URLs: (r'^$', 'django.views.generic.date_based.archive_index', archive_info), (r'^(?P\d{4})/$', 'django.views.generic.date_based.archive_year', archive_info), (r'^(?P\d{4})/(?P[a-z]{3})/$', 'django.views.generic.date_based.archive_month', archive_info), (r'^(?P\d{4})/(?P[a-z]{3})/(?P\w{1,2})/(? P[-\w]+)/$', 'django.views.generic.date_based.object_detail', archive_info), my archive info dict contains the following: archive_info = { 'queryset' : Entry.objects.all(), 'date_field' : 'entry_date', 'template_name' : 'blog/archive.html', } Now I have 2 questions about this: 1. I understand that to get your standard archive you use links on your home you use 'django.views.generic. date_based.archive_index', however if i use: {% for dates in date_list %} {{ dates.date }} {% endfor %} I just get 2008-01-01, i guess thats cos I only have entries in 2008 and the date is formatted wrongly, so my question is how can i get a list of months, like you find on any archive links; September 2008, October 2008 etc. 2. At the moment i've just been testing the generic view in a template which does nothing else apart from show archive links, how can I incorporate this with my main template (the index page I already have) which uses views? I would be grateful for any help or advice. Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: URLs Syntax Error
I'm a bit confused here, what is dict, is it the same as archive infor? And what has happened to date_based.archive_index? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: URLs Syntax Error
Can no one help me with this, its just these two lines: (r'^archive/$', date_based.archive_index,archive_info {'template_name': 'blog/archive.html'}), (r'^archive/(?Pd{4})/?$',date_based.archive_year, archive_info {'template_name': 'blog/archive.html'}), Please? Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
URLs Syntax Error
Hi, I have the following URLs.py from django.conf.urls.defaults import * from akonline.views import current_datetime from django.views.generic import date_based from akonline.blog.models import Category, Entry archive_info = { "queryset" : Entry.objects.all(), "date_field" : "entry_date" } urlpatterns = patterns('', (r'^time/$', current_datetime), (r'^blog/$', 'akonline.blog.views.get_entries'), (r'^test/$', 'akonline.blog.views.blog'), (r'^blog/(?P\w+)/$', 'akonline.blog.views.category_entry'), # Date based URLS: #LINE 20 Below: (r'^archive/$', date_based.archive_index, archive_info {'template_name': 'blog/archive.html'}), (r'^archive/(?Pd{4})/?$', date_based.archive_year, archive_info {'template_name': 'blog/ archive.html'}), # Uncomment this for admin: # (r'^admin/', include('django.contrib.admin.urls')), ) and on line 20 I get the following error: Request Method: GET Request URL: http://www.andrewkenyononline.net/test/ Django Version: 1.0-beta_2-SVN-8849 Python Version: 2.4.4 Installed Applications: ['akonline.blog'] Installed Middleware: () Traceback: File "/home/django/django_src/django/core/handlers/base.py" in get_response 76. callback, callback_args, callback_kwargs = resolver.resolve( File "/home/django/django_src/django/core/urlresolvers.py" in resolve 178. for pattern in self.urlconf_module.urlpatterns: File "/home/django/django_src/django/core/urlresolvers.py" in _get_urlconf_module 197. self._urlconf_module = __import__(self.urlconf_name, {}, {}, ['']) Exception Type: SyntaxError at /test/ Exception Value: invalid syntax (urls.py, line 20) This is my first attempt at using data based views so the same error probably occurs on line 21 as well. I would appreciate any help. Regards, Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Serving static files?
You may find this useful: http://groups.google.com/group/django-users/browse_thread/thread/73aae22ae6d20de0/dbfe3a60be00d9bb#dbfe3a60be00d9bb You should have apache serve the static content because its much faster. The link I sent you is when I was having problems with it a few weeks ago, basically you need to set the apache directives so that for static files the handler is set to none, if you read through that and use the examples (the ones at the bottom, the ones at the top where my original attempts) I think you will be able to get a feel of whats going on. If you struggle with anything let me know. You should know i'm no expert though. Regards, Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: How to create a list of months from a date field.
I've added the following to my urls.py, i don't know if they work, my server only restarts every so often: (r'^archive/$', date_based.archive_index, archive_info {'template_name': 'blog/archive.html'}), (r'^archive/(?Pd{4})/?$', date_based.archive_year, archive_info {'template_name': 'blog/archive.html'}), Do these look about right and how can I can a list of months in another template, I have a template index html and a need a list with links for each month something like: January 2008 Febuary 2008 March 2008 with links to the urls above. I may have misunderstood this whole thing entirly to be honest. Regards, Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: How to create a list of months from a date field.
I've had alook through http://www.djangoproject.com/documentation/generic_views/ but i'm still not clear on what to do. I might be being a bit think but could someone explain it to me. Regards, Andrew On Aug 30, 5:59 pm, Dmitry Dzhus <[EMAIL PROTECTED]> wrote: > djandrow wrote: > > I understand dynamic urls and templates and things, so i don't need > > help with that. What i need to know is how can i get a list of months > > which have entries in them, I'd apperciate any help. > > Use generic date-based view (under django.views.generic.date_based.) and > see `date_list` context variable. > -- > Happy Hacking. > > http://sphinx.net.ru > む --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
How to create a list of months from a date field.
I'm basically trying to create a standard archive function. I have the following field in my models:entry_date = models.DateField(auto_now_add=True) I understand dynamic urls and templates and things, so i don't need help with that. What i need to know is how can i get a list of months which have entries in them, I'd apperciate any help. Thanks Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Dynamic URL
I'm trying to create a situation where you can bring up all the blog entries in a category through the URL. I've got this in my urls.py: from django.conf.urls.defaults import * from akonline.views import current_datetime urlpatterns = patterns('', (r'^test/$', 'address.blog.views.blog'), (r'^blog/(?P\w+)/$', 'address.blog.views.category_entry'), ) - then this is the category_entry in my views: def category_entry(request, category): entries_in_cat = Entry.objects.filter(entry_cat=category) return render_to_response('blog/index.html', locals()) - then this is my pretty simple template: {% for object in entries_in_cat %} {{ object.entry_title }} - then these models: from django.db import models class Category(models.Model): cat_id = models.AutoField(primary_key=True) cat_name = models.CharField(max_length=20) cat_desc = models.CharField(max_length=200) def __unicode__(self): return self.cat_name class Entry(models.Model): entry_id = models.AutoField(primary_key=True) entry_date = models.DateField(auto_now_add=True) entry_title = models.CharField(max_length=70) entry_content = models.TextField(max_length=5000) entry_cat = models.ManyToManyField(Category) def __unicode__(self): return self.entry_title - I don't get an error, its just it returns a blank page, so i'd guess either category isn't being read in correctly or the filter statement is incorrect. I'd appericiate any help Thanks, Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Serving static content using Apache
Managed to get it working, thanks everyone. I guess the problem was CSS was missing from locationMatch --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Serving static content using Apache
I've added this, #css has been added to the end SetHandler None but still no luck, however if i look at the pages statically on the server rather than having apache serve them the CSS is used so now I know that the CSS works and i guess its in the right place, although the relative and absolute address are the same, but if thats the case it should work anyway. Does anybody have any ideas? Andrew --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---