admin search
I would like to use the admin search of the flatpage in my website template so how can i do that any help will be appreciated Thank you in advance --~--~-~--~~~---~--~~ 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: List with pagination, sorting and simple search interface
Hi Pigletto; Is there a way that i can see the code you have implemented it will be great to help me Thank you in advance; On Jul 24, 11:27 pm, Przemek Gawronski <[EMAIL PROTECTED]> wrote: > > Thanks. Finally I've used PaginatorPag from your link (with some > > changes) and > > Sortable Headers (from djangosnippets) with some changes too, newforms > > to createsearchform and generic list. > > Changes I had to do were necessary because each of those components - > > sort, filter and pagination should > > know about others parameters, eg. while sorting you shouldn't lost > > filter parameters etc. > > Maybe you could put it at djangosnippets for others? I would be more > then happy to take a look at it :) > > Przemek > -- > AIKIDO TANREN DOJO - Poland - Warsaw - Mokotow - Ursynow - Natolin > inf o:ht tp://www.tanren.pl/phone: +4850151 email: [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
https://simon.bofh.ms/cgi-bin/trac-django-projects.cgi/file/cms/trunk/apps/cms/search.py whyit is not working any more
I just want to take a look on the search.py there as i need to use search in my cms and i tried this lin https://simon.bofh.ms/cgi-bin/trac-django-projects.cgi/file/cms/trunk/apps/cms/search.py but it is not working any help ?? Thanks Mary Adel --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
redirect error to home page
Dear All ; I would like to do the following and i need your help: I have created my application using django framework and i need that is there is any 404 error so the application will be directed to home page directly How can i do that ?? Thank you in advance ; mary Adel --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
sitemap for django 0.95.1
Does the sitemap work for version 0.95.1 Casue when i went to this url http://www.djangoproject.com/documentation/0.95/sitemaps/ it gave me error page Thanks you in advance ; Mary Adel --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
development version
I would like to use the development version in creating life websites So if i make svn update does this affect my projects and if so shall i use the stable version instead?? Thank you in advance; Mary Adel --~--~-~--~~~---~--~~ 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: Django Stuff
I am using 0.95.1 the latest stable version for Django --MA On Mar 20, 10:21 pm, "Matthew Flanagan" <[EMAIL PROTECTED]> wrote: > On 3/20/07, Mary <[EMAIL PROTECTED]> wrote: > > > > > > > here is my search.py > > > from django.contrib.sites.models import Site > > > from stuff.search.helpers import SearchDefinition > > > class PageSearch(SearchDefinition): > > model_module = 'test.Unpublished_Pages' > > time_order_by = 'time_created' > > search_fields = ('title', 'text') > > > I put it in one of my applications inside the project and i get > > another error now which is : > > > Exception Value:'NoneType' object has no attribute 'objects' > > Exception Location: /var/www/test/stuff/search/helpers.py in > > get_id_list, line 32 > > > Sorry for all my questions which may be stupid :( > > Thank you in advance for help > > Which version of Django are you using? 0.95.x or trunk? there was a > problem in 0.95 that caused stuff.search to fail. > > > > > > > On Mar 20, 12:02 pm, "Matthew Flanagan" <[EMAIL PROTECTED]> > > wrote: > > > On 3/20/07, Mary <[EMAIL PROTECTED]> wrote: > > > > > Hi Mathew > > > > > I really appreciate this diff patch it solves all the problem and now > > > > i am just facing one error in the search.py > > > > xception Value: No module named helpers > > > > Exception Location: /var/www/test.net/test/search.py in ?, line 11 > > > > > Do u have an idea why this could happened > > > > Can you provide test/search.py? > > > > > hi Doug > > > > > Thanks for the snippets but i really can't understand how it works is > > > > there any full example that i can see or any documnetation that i can > > > > read for that > > > > > Thank you in advance ; > > > > Mary Adel > > > > > On Mar 19, 11:42 pm, "[EMAIL PROTECTED]" > > > > <[EMAIL PROTECTED]> wrote: > > > > > As noted in another thread there is a hack way of adding search to a > > > > > model detailed on teh django snippits > > > > > site:http://www.djangosnippets.org/snippets/31/http://www.djangosnippets.o... > > > > > > It is no where near as nice nor as comprehensive as the old django > > > > > stuff abstract search interface, but it does get the job done in a > > > > > pinch. > > > > > > -Doug > > > > -- > > > matthewhttp://wadofstuff.blogspot.com > > -- > matthewhttp://wadofstuff.blogspot.com --~--~-~--~~~---~--~~ 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: Search feature
Thanks for all the tips I just want to know how the return result template will look like So if any body can give me a small example i would really appretiate Thank you in advance -- Mary Adel :( On Mar 19, 2:50 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Feb 22, 11:07 pm, "Mary" <[EMAIL PROTECTED]> wrote: > > > How can i add asearchfeature to my website? > > > Can anybody help me in this > > HiMary, > > have a look at these two > snippets:http://www.djangosnippets.org/snippets/31/(long version, easier to > understand the principle)http://www.djangosnippets.org/snippets/32/(compact > version) > > L. --~--~-~--~~~---~--~~ 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: Django Stuff
here is my search.py from django.contrib.sites.models import Site from stuff.search.helpers import SearchDefinition class PageSearch(SearchDefinition): model_module = 'test.Unpublished_Pages' time_order_by = 'time_created' search_fields = ('title', 'text') I put it in one of my applications inside the project and i get another error now which is : Exception Value:'NoneType' object has no attribute 'objects' Exception Location: /var/www/test/stuff/search/helpers.py in get_id_list, line 32 Sorry for all my questions which may be stupid :( Thank you in advance for help On Mar 20, 12:02 pm, "Matthew Flanagan" <[EMAIL PROTECTED]> wrote: > On 3/20/07, Mary <[EMAIL PROTECTED]> wrote: > > > > > Hi Mathew > > > I really appreciate this diff patch it solves all the problem and now > > i am just facing one error in the search.py > > xception Value: No module named helpers > > Exception Location: /var/www/test.net/test/search.py in ?, line 11 > > > Do u have an idea why this could happened > > Can you provide test/search.py? > > > > > > > hi Doug > > > Thanks for the snippets but i really can't understand how it works is > > there any full example that i can see or any documnetation that i can > > read for that > > > Thank you in advance ; > > Mary Adel > > > On Mar 19, 11:42 pm, "[EMAIL PROTECTED]" > > <[EMAIL PROTECTED]> wrote: > > > As noted in another thread there is a hack way of adding search to a > > > model detailed on teh django snippits > > > site:http://www.djangosnippets.org/snippets/31/http://www.djangosnippets.o... > > > > It is no where near as nice nor as comprehensive as the old django > > > stuff abstract search interface, but it does get the job done in a > > > pinch. > > > > -Doug > > -- > matthewhttp://wadofstuff.blogspot.com --~--~-~--~~~---~--~~ 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: Django Stuff
Hi Mathew I really appreciate this diff patch it solves all the problem and now i am just facing one error in the search.py xception Value: No module named helpers Exception Location: /var/www/test.net/test/search.py in ?, line 11 Do u have an idea why this could happened hi Doug Thanks for the snippets but i really can't understand how it works is there any full example that i can see or any documnetation that i can read for that Thank you in advance ; Mary Adel On Mar 19, 11:42 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > As noted in another thread there is a hack way of adding search to a > model detailed on teh django snippits > site:http://www.djangosnippets.org/snippets/31/http://www.djangosnippets.org/snippets/32/ > > It is no where near as nice nor as comprehensive as the old django > stuff abstract search interface, but it does get the job done in a > pinch. > > -Doug --~--~-~--~~~---~--~~ 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: Django Stuff
I want anybody to help me and tell me where to find https://simon.bofh.ms/cgi-bin/trac-django-projects.cgi/wiki/AbstractSearching that can work with Django stable version 0.95.1 cause i want to use Abstarct search module May be this is not the right place for this question but i really don't know where i can ask this question Thank you in advance Mary Adel On Mar 19, 9:41 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > DjangoStuff:https://simon.bofh.ms/cgi-bin/trac-django-projects.cgi/wiki/DjangoStuff > > Is not part of the core Django system and is third party. > It is developed by D. Joseph Creighton, and all questions on his code > should be directed to him:https://simon.bofh.ms/ > > In direct answer to your question: no. Not all of the djangostuff code > works with 0.95.1, some of it has been migrated, some of it has not, > and the testing framework has been deprecated in favor of the testing > framework in django. You will need to read up on the documentation on > each individual project or app. > > You just need to put the code somewhere on your PYTHONPATH. There are > complete instructions on the DjangoStuff track wiki, and in the code > its self. You may need to modify some of the code in order to get it > to work with your site. > > -Doug --~--~-~--~~~---~--~~ 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: Django Stuff
Also jone more question where shall i put stuff when i download it ?? On Mar 19, 9:12 pm, "Mary" <[EMAIL PROTECTED]> wrote: > Does Django Stuff works with latest stable version for Django which is > 0.95.1 ?? > > Thank you in advance; > Mary Adel --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Django Stuff
Does Django Stuff works with latest stable version for Django which is 0.95.1 ?? Thank you in advance; Mary Adel --~--~-~--~~~---~--~~ 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: Search feature
Thank you for replying me I tried flatpages = FlatPage.objects.filter(Q(title__contains=search_str) | Q(content__contains=search_str)) products = Product.objects.filter(Q(title__contains=search_str) | Q(description__contains=search_str)) but it gave me error Exception Type: NameError Exception Value:global name 'Q' is not defined If you can help me and tell what is the right syntax i ould really appreciate that a lot Thank you in advance Mary Adel On Feb 23, 1:37 pm, "Aidas Bendoraitis" <[EMAIL PROTECTED]> wrote: > Just filter searchable models according the searchable fields by the > user-input. You'll need a form with a field forsearchstring. And a > view for results with something like: > flatpages = FlatPage.objects.filter(Q(title__contains=search_str) | > Q(content__contains=search_str)) > products = Product.objects.filter(Q(title__contains=search_str) | > Q(description__contains=search_str)) > ... if consider that the visitor cansearchin title and content of > flat pages and in title and description of products. > > To make thesearcheven more flexible, you can parse the search_str > into chunks considering that spaces react as OR operators (like in the > popularsearchengines) and then to form some complex filter arguments > and pass them to the filter method using *args and **kwargs, like this > flatpage_args = ... # OR'ed arguments > flatpage_kwargs = ... # arguments to AND > flatpages = FlatPage.objects.filter(*flatpage_args, **flatpage_kwargs) > product_args = ... # OR'ed arguments > product_kwargs = ... # arguments to AND > products = Product.objects.filter(*product_args, **product_kwargs) > > Regards, > Aidas Bendoraitis [aka Archatas] > > On 2/22/07, Mary <[EMAIL PROTECTED]> wrote: > > > > > How can i add asearchfeature to my website? > > > Can anybody help me in this > > > Thank you in advance; > > Mary Adel --~--~-~--~~~---~--~~ 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: Search Swish
If jacobe or Adrain can help in answering me i will really appreciate Thank you in advance ; Mary Adel On Mar 11, 9:45 pm, "Mary" <[EMAIL PROTECTED]> wrote: > I read on one of the posts here > > > At World Online, thesearchengine (lawrence.com/search, > > ljworld.com/search) uses swish-e (http://swish-e.org/) to index files. > > [snip] > > > Hope that helps! It would be pretty cool to open-source this mini > >searchframework and pop it in django/contrib, but that would be up to > > Jacob to decide. > > I'd love to open it up; I don't see any reason that we'd need to > keep > it hidden. I'll put it on my todo list :) > > Jacob > > So i would like to know if i can see the code if it already published > cause i need to implement asearchcriteria in my site and this will > really helps --~--~-~--~~~---~--~~ 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: Django FileBrowser
I would like to know why i can't see the thumbnails althought i have python-imaging-1.1.5-3.fc4 any ideas?? On Mar 13, 8:01 pm, "Mary" <[EMAIL PROTECTED]> wrote: > No i can't see this pictures and directories > but when i copy and past the url before the admin url [sorry i read > this note in the steps and i think i missed it the first time]i was > able to add directories > > But i still can't see > thehttp://trac.dedhost-sil-076.sil.at/trac/filebrowser/chrome/site/fb_2.jpg > > I wondering why? > > On Mar 13, 6:35 pm, "patrick k." <[EMAIL PROTECTED]> wrote: > > > before you click on "make directory", do you see the directory- > > listing like > > this:http://trac.dedhost-sil-076.sil.at/trac/filebrowser/chrome/site/fb_2.jpg > > > did you follow step 6? > > it seems that the urls aren´t configured. > > > patrick > > > Am 13.03.2007 um 17:14 schrieb Mary: > > > > I would like to use Django file browser > > > i did the steps 1-8 that is on the link > > >http://trac.dedhost-sil-076.sil.at/trac/filebrowser/ > > > wiki#DjangoFileBrowser > > > and when i open my admin interface i found the filebrowse but when i > > > click on > > > Adddirectory it gave me an error > > > > App 'filebrowser', model 'mkdir', not found > > > > Does anyone have an idea why is this happened to me ? > > > > Thank you in advance ; > > > Mary Adel --~--~-~--~~~---~--~~ 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: Django FileBrowser
No i can't see this pictures and directories but when i copy and past the url before the admin url [sorry i read this note in the steps and i think i missed it the first time]i was able to add directories But i still can't see the http://trac.dedhost-sil-076.sil.at/trac/filebrowser/chrome/site/fb_2.jpg I wondering why? On Mar 13, 6:35 pm, "patrick k." <[EMAIL PROTECTED]> wrote: > before you click on "make directory", do you see the directory- > listing like > this:http://trac.dedhost-sil-076.sil.at/trac/filebrowser/chrome/site/fb_2.jpg > > did you follow step 6? > it seems that the urls aren´t configured. > > patrick > > Am 13.03.2007 um 17:14 schrieb Mary: > > > > > I would like to use Django file browser > > i did the steps 1-8 that is on the link > >http://trac.dedhost-sil-076.sil.at/trac/filebrowser/ > > wiki#DjangoFileBrowser > > and when i open my admin interface i found the filebrowse but when i > > click on > > Adddirectory it gave me an error > > > App 'filebrowser', model 'mkdir', not found > > > Does anyone have an idea why is this happened to me ? > > > Thank you in advance ; > > Mary Adel --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Django FileBrowser
I would like to use Django file browser i did the steps 1-8 that is on the link http://trac.dedhost-sil-076.sil.at/trac/filebrowser/wiki#DjangoFileBrowser and when i open my admin interface i found the filebrowse but when i click on Adddirectory it gave me an error App 'filebrowser', model 'mkdir', not found Does anyone have an idea why is this happened to me ? Thank you in advance ; Mary Adel --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
search criteria
is there any search functionality that has been implemented with Django for postgresql database As i need to add search in my website and i don't know from where i can start Any help will be very appreciated Thank you in advance; Mary Adel --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Search Swish
I read on one of the posts here > At World Online, the search engine (lawrence.com/search, > ljworld.com/search) uses swish-e (http://swish-e.org/) to index files. [snip] > Hope that helps! It would be pretty cool to open-source this mini > search framework and pop it in django/contrib, but that would be up to > Jacob to decide. I'd love to open it up; I don't see any reason that we'd need to keep it hidden. I'll put it on my todo list :) Jacob So i would like to know if i can see the code if it already published cause i need to implement a search criteria in my site and this will really helps --~--~-~--~~~---~--~~ 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: javascript issue
Ohh thank you very much it helps a lot :) On Mar 11, 5:55 pm, "akonsu" <[EMAIL PROTECTED]> wrote: > hello, > > i have several questions: > > 1. why do you have s;ash (/) before quotes in some places like > > > homebutton01up.src = /"media/images/welcome.jpg"; > > 2. what does "The script doesn't work" mean? i suspect it means the > images are not shown. is this correct? > > 3. "django will not find the image by this way" implies that you serve > images through django. is this correct? > > 4. do you serve the css file through django as well? > > 5. have yuo seen the discussion > athttp://www.djangoproject.com/documentation/static_files/ > > hope this helps > konstantin > > On Mar 11, 7:49 am, "Mary" <[EMAIL PROTECTED]> wrote: > > > I am implementing a website with Djnago and i have been facing certain > > issue with a javascript > > i don't know if this is the right place for the post or no but if any > > one can help it would be great > > > The problem is that when i make the path of the images :/media/images/ > > the image The script doesn't work but when i change it to media/images/ > > the image The script works fine > > > But i can't do make the path media/images/the image as django will not > > find the image by this way so does anyone has as idea how can i make > > the path of the images media/images and Django can translate it to the > > right media path > > > here is my javascipt: > > > > <!-- > > if (document.media/images) { > > homebutton01up = new Image(); > > homebutton01up.src = /"media/images/welcome.jpg"; > > homebutton01down = new Image() ; > > homebutton01down.src = /"media/images/welcome-red.jpg"; > > >homebutton02up = new Image(); > > homebutton02up.src = "/media/images/sub-scholar.jpg"; > > homebutton02down = new Image() ; > > homebutton02down.src = "/media/images/sub-scholar_red.jpg"; > > >homebutton03up = new Image(); > > homebutton03up.src = "/media/images/sub-student.jpg"; > > homebutton03down = new Image() ; > > homebutton03down.src = "/media/images/sub-student_red.jpg"; > > >homebutton04up = new Image(); > > homebutton04up.src = "/media/images/parents.jpg"; > > homebutton04down = new Image() ; > > homebutton04down.src = "/media/images/sub-parents_red.jpg"; > > >homebutton05up = new Image(); > > homebutton05up.src = "/media/images/sub-alumni.jpg"; > > homebutton05down = new Image() ; > > homebutton05down.src = "/media/images/sub-alumni_red7.jpg"; > > >homebutton06up = new Image(); > > homebutton06up.src = "/media/images/sub-donors.jpg"; > > homebutton06down = new Image() ; > > homebutton06down.src = "/media/images/sub-donors_red.jpg"; > > >homebutton07up = new Image(); > > homebutton07up.src = "/media/images/sub-career.jpg"; > > homebutton07down = new Image() ; > > homebutton07down.src = "/media/images/sub-career_red.jpg";} > > > function buttondown( buttonname ) > > { > > if (document.media/images) { > > document[ buttonname ].src = eval( buttonname + "down.src" ); > > }} > > > function buttonup ( buttonname ) > > { > > if (document.media/images) { > > document[ buttonname ].src = eval( buttonname + "up.src" ); > > } > > > } > > > function here ( buttonname ) > > { > > if (buttonname==homebutton01) { > > document.homebutton01.src = "/media/images/welcome-red.jpg"; > > } > > else if (buttonname==homebutton02) { > > document.homebutton02.src = "/media/images/sub-scholar_red.jpg"; > > } > > else if (buttonname==homebutton03) { > > document.homebutton03.src = "/media/images/sub-student_red.jpg"; > > } > > else if (buttonname==homebutton04) { > > document.homebutton04.src = "/media/images/sub-parents_red.jpg"; > > } > > else if (buttonname==homebutton05) { > > document.homebutton05.src = "/media/images/sub-alumni_red7.jpg"; > > } > > else if (buttonname==homebutton06) { > > document.homebutton06.src = "/media/images/sub-donors_red.jpg"; > >
javascript issue
I am implementing a website with Djnago and i have been facing certain issue with a javascript i don't know if this is the right place for the post or no but if any one can help it would be great The problem is that when i make the path of the images :/media/images/ the image The script doesn't work but when i change it to media/images/ the image The script works fine But i can't do make the path media/images/the image as django will not find the image by this way so does anyone has as idea how can i make the path of the images media/images and Django can translate it to the right media path here is my javascipt: --~--~-~--~~~---~--~~ 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: Templatedb problem
OHH i just found the solution which is that i miss to add this line in view.py from blog.savedtemplate.models import Template and it solved my issue :) Thank you ; Mary Adel On Mar 8, 1:59 pm, "Mary" <[EMAIL PROTECTED]> wrote: > I just have another one issue about the template db > I have created a template in the database and i called it blog/ > home.html > > and i wrote may view like this : > > from django.shortcuts import render_to_response > from blog.home.models import Blog > def home(request): > > return render_to_response('blog/home.html') > > But i got an error which is > Exception Type: TemplateDoesNotExist > Exception Value:/blog/home.html > Exception Location: /usr/lib/python2.4/site-packages/Django-0.95.1- > py2.4.egg/django/template/loader.py in find_template_source, line 72 > Template-loader postmortem > > Django tried loading these templates, in this order: > > * Using loader > django.template.loaders.filesystem.load_template_source: > o /blog/home.html (File does not exist) > * Using loader > django.template.loaders.app_directories.load_template_source: > o /blog/home.html (File does not exist) > o /blog/home.html (File does not exist) > * Using loader > blog.savedtemplate.loaders.database.load_template_source: > > Can anyone tell me please what is my mistake as i really can't know > Thank you very much > Mary Adel > > On Mar 8, 11:49 am, "Mary" <[EMAIL PROTECTED]> wrote: > > > Dear Malcom ; > > I have renamed my version to "myapp.savedtemplate" and it worked fine > > with me > > so my problem has been solved and i really appreciate your help; > > > Thank you very much ; > > Mary Adel > > > On Mar 7, 1:00 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> > > wrote: > > > > On Wed, 2007-03-07 at 01:41 -0800, Mary wrote: > > > > Dear Malcom; > > > > > I have commented this line #from template.models import Template > > > > in template/loaders/database.py > > > > > and it works fine with but i don't know if it will affect any of the > > > > functionality or not > > > > That's not a good idea. It will break a lot of things having to do with > > > templating. > > > > > also my setting.py is : > > > > TEMPLATE_LOADERS = ( > > > > 'django.template.loaders.filesystem.load_template_source', > > > > 'django.template.loaders.app_directories.load_template_source', > > > > 'myapp.template.loaders.database.load_template_source', > > > > > ) > > > > > MIDDLEWARE_CLASSES = ( > > > > 'django.middleware.common.CommonMiddleware', > > > > 'django.contrib.sessions.middleware.SessionMiddleware', > > > > 'django.contrib.auth.middleware.AuthenticationMiddleware', > > > > 'django.middleware.doc.XViewMiddleware', > > > > "myapp.middleware.threadlocals.ThreadLocals", > > > > ) > > > > > ROOT_URLCONF = 'myapp.urls' > > > > > TEMPLATE_DIRS = ( > > > > # Put strings here, like "/home/html/django_templates". > > > > # Always use forward slashes, even on Windows. > > > > "/var/www/myapp/Template_Dir/", > > > > ) > > > > > INSTALLED_APPS = ( > > > > 'django.contrib.auth', > > > > 'django.contrib.contenttypes', > > > > 'django.contrib.sessions', > > > > 'django.contrib.sites', > > > > 'django.contrib.admin', > > > > 'django.contrib.markup', > > > > '.myapp.articles', > > > > This line looks a little suspicious (the leading '.'), but it may be > > > fine. > > > > > 'myapp.stockphoto', > > > > 'myapp.template', > > > > This is probably where your problem lies. From your error message, it > > > looks like there is some confusion between your package called > > > "template" and Django's internal "template" package. Try renaming your > > > version to "myapp.templateX" or something like that and see if the > > > problem goes away. > > > > I realise this is a bit ugly if it is the solution, but some of the > > > dynamic importing inside Django can cause problems sometimes. If > > > renaming here does make your problem go away, let us know, because it > > > might be something we can look at fixing in the future. (And, obviously, > > > if that doesn't fix the problem, let us know too and somebody might have > > > some other ideas.) > > > > Regards, > > > Malcolm --~--~-~--~~~---~--~~ 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: Templatedb problem
I just have another one issue about the template db I have created a template in the database and i called it blog/ home.html and i wrote may view like this : from django.shortcuts import render_to_response from blog.home.models import Blog def home(request): return render_to_response('blog/home.html') But i got an error which is Exception Type: TemplateDoesNotExist Exception Value:/blog/home.html Exception Location: /usr/lib/python2.4/site-packages/Django-0.95.1- py2.4.egg/django/template/loader.py in find_template_source, line 72 Template-loader postmortem Django tried loading these templates, in this order: * Using loader django.template.loaders.filesystem.load_template_source: o /blog/home.html (File does not exist) * Using loader django.template.loaders.app_directories.load_template_source: o /blog/home.html (File does not exist) o /blog/home.html (File does not exist) * Using loader blog.savedtemplate.loaders.database.load_template_source: Can anyone tell me please what is my mistake as i really can't know Thank you very much Mary Adel On Mar 8, 11:49 am, "Mary" <[EMAIL PROTECTED]> wrote: > Dear Malcom ; > I have renamed my version to "myapp.savedtemplate" and it worked fine > with me > so my problem has been solved and i really appreciate your help; > > Thank you very much ; > Mary Adel > > On Mar 7, 1:00 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> > wrote: > > > On Wed, 2007-03-07 at 01:41 -0800, Mary wrote: > > > Dear Malcom; > > > > I have commented this line #from template.models import Template > > > in template/loaders/database.py > > > > and it works fine with but i don't know if it will affect any of the > > > functionality or not > > > That's not a good idea. It will break a lot of things having to do with > > templating. > > > > also my setting.py is : > > > TEMPLATE_LOADERS = ( > > > 'django.template.loaders.filesystem.load_template_source', > > > 'django.template.loaders.app_directories.load_template_source', > > > 'myapp.template.loaders.database.load_template_source', > > > > ) > > > > MIDDLEWARE_CLASSES = ( > > > 'django.middleware.common.CommonMiddleware', > > > 'django.contrib.sessions.middleware.SessionMiddleware', > > > 'django.contrib.auth.middleware.AuthenticationMiddleware', > > > 'django.middleware.doc.XViewMiddleware', > > > "myapp.middleware.threadlocals.ThreadLocals", > > > ) > > > > ROOT_URLCONF = 'myapp.urls' > > > > TEMPLATE_DIRS = ( > > > # Put strings here, like "/home/html/django_templates". > > > # Always use forward slashes, even on Windows. > > > "/var/www/myapp/Template_Dir/", > > > ) > > > > INSTALLED_APPS = ( > > > 'django.contrib.auth', > > > 'django.contrib.contenttypes', > > > 'django.contrib.sessions', > > > 'django.contrib.sites', > > > 'django.contrib.admin', > > > 'django.contrib.markup', > > > '.myapp.articles', > > > This line looks a little suspicious (the leading '.'), but it may be > > fine. > > > > 'myapp.stockphoto', > > > 'myapp.template', > > > This is probably where your problem lies. From your error message, it > > looks like there is some confusion between your package called > > "template" and Django's internal "template" package. Try renaming your > > version to "myapp.templateX" or something like that and see if the > > problem goes away. > > > I realise this is a bit ugly if it is the solution, but some of the > > dynamic importing inside Django can cause problems sometimes. If > > renaming here does make your problem go away, let us know, because it > > might be something we can look at fixing in the future. (And, obviously, > > if that doesn't fix the problem, let us know too and somebody might have > > some other ideas.) > > > Regards, > > Malcolm --~--~-~--~~~---~--~~ 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: Templatedb problem
Dear Malcom ; I have renamed my version to "myapp.savedtemplate" and it worked fine with me so my problem has been solved and i really appreciate your help; Thank you very much ; Mary Adel On Mar 7, 1:00 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Wed, 2007-03-07 at 01:41 -0800, Mary wrote: > > Dear Malcom; > > > I have commented this line #from template.models import Template > > in template/loaders/database.py > > > and it works fine with but i don't know if it will affect any of the > > functionality or not > > That's not a good idea. It will break a lot of things having to do with > templating. > > > > > also my setting.py is : > > TEMPLATE_LOADERS = ( > > 'django.template.loaders.filesystem.load_template_source', > > 'django.template.loaders.app_directories.load_template_source', > > 'myapp.template.loaders.database.load_template_source', > > > ) > > > MIDDLEWARE_CLASSES = ( > > 'django.middleware.common.CommonMiddleware', > > 'django.contrib.sessions.middleware.SessionMiddleware', > > 'django.contrib.auth.middleware.AuthenticationMiddleware', > > 'django.middleware.doc.XViewMiddleware', > > "myapp.middleware.threadlocals.ThreadLocals", > > ) > > > ROOT_URLCONF = 'myapp.urls' > > > TEMPLATE_DIRS = ( > > # Put strings here, like "/home/html/django_templates". > > # Always use forward slashes, even on Windows. > > "/var/www/myapp/Template_Dir/", > > ) > > > INSTALLED_APPS = ( > > 'django.contrib.auth', > > 'django.contrib.contenttypes', > > 'django.contrib.sessions', > > 'django.contrib.sites', > > 'django.contrib.admin', > > 'django.contrib.markup', > > '.myapp.articles', > > This line looks a little suspicious (the leading '.'), but it may be > fine. > > > 'myapp.stockphoto', > > 'myapp.template', > > This is probably where your problem lies. From your error message, it > looks like there is some confusion between your package called > "template" and Django's internal "template" package. Try renaming your > version to "myapp.templateX" or something like that and see if the > problem goes away. > > I realise this is a bit ugly if it is the solution, but some of the > dynamic importing inside Django can cause problems sometimes. If > renaming here does make your problem go away, let us know, because it > might be something we can look at fixing in the future. (And, obviously, > if that doesn't fix the problem, let us know too and somebody might have > some other ideas.) > > Regards, > Malcolm --~--~-~--~~~---~--~~ 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: dojo problem
I have really tried with dojo and i worked with this steops exactly http://code.djangoproject.com/wiki/AddDojoEditor and i didn't see anything in my text Area field I have django 0.95.1 i have installed dojo 0.4 Can anyone help please as i spent a lot of time to know what is the problem with nothing also i tried to added AddRichTextEditing.js' in django/contrib/admin/ jss/admin also nothing changes On Mar 7, 3:06 pm, "Nathan R. Yergler" <[EMAIL PROTECTED]> wrote: > On 3/6/07, Mary <[EMAIL PROTECTED]> wrote: > > > > > > > here is my model : > > text = models.TextField(help_text='Rich Text Editing.') > > class Admin: > > js = ['js/admin/AddRichTextEditing.js'] > > > list_display = ('title','owner','time_created') > > > i have added the dojo folder in my media folder and i have added > > AddRichTextEditing.js in js/admin/AddRichTextEditing.js' > > > I have no idea why the test are doesn't appear with text editor > > I am using django 0.95.1 and when i click on my browser > > http//:mywebsite/media/js/admin/AddRichTextEditing.js > > i can see the script > > any ide why is this happening > > In Django 0.95 (may also apply to HEAD, not certain), the URLs > provided in the js attribute are interpreted as relative to the admin > application's media folder. So you'd want to put your > AddRichTextEditing.js file in django/contrib/admin/media/js/admin/ to > make your setting above work. > > > > > Thank you ; > > Mary Adel --~--~-~--~~~---~--~~ 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: Templatedb problem
Dear Malcom; I have commented this line #from template.models import Template in template/loaders/database.py and it works fine with but i don't know if it will affect any of the functionality or not also my setting.py is : TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.load_template_source', 'django.template.loaders.app_directories.load_template_source', 'myapp.template.loaders.database.load_template_source', ) MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.doc.XViewMiddleware', "myapp.middleware.threadlocals.ThreadLocals", ) ROOT_URLCONF = 'myapp.urls' TEMPLATE_DIRS = ( # Put strings here, like "/home/html/django_templates". # Always use forward slashes, even on Windows. "/var/www/myapp/Template_Dir/", ) INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'django.contrib.markup', '.myapp.articles', 'myapp.stockphoto', 'myapp.template', ) On Mar 7, 2:42 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2007-03-06 at 15:45 -0800, Mary wrote: > > 1. installed django-databasetemplateloader.tar.gz > > 2. put template folder in my project > > 3. add in setting.py the following:'myapp.template',and > > 'myapp.template.loaders.database.load_template_source', > > 4. I restarted my django server > > 5. I execute python manage.py syncdb > > i got this error: > > > Exception Type:ImproperlyConfigured > > Exception Value: Error importing template source loader > > hsf.template.loaders.database: "No module named template.models" > > Exception Location:/usr/lib/python2.4/site-packages/Django-0.95.1- > > py2.4.egg/django/template/loader.py in find_template_source, line 56 > > [...] > > Certainly sounds like a path error somewhere or an installation problem. > Does it fail for a very simple project with one app and a simple model > with only one field? If so, that would indicate a Django installation > problem. If not, how much extra information do you need to add to move > it closer to your current setup before things fail? > > Could you post your settings.py file? In particular, the template loader > and installed apps sections. I suspect you have made a typo in there > somewhere. > > Regards, > Malcolm --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Templatedb problem
1. installed django-databasetemplateloader.tar.gz 2. put template folder in my project 3. add in setting.py the following:'myapp.template',and 'myapp.template.loaders.database.load_template_source', 4. I restarted my django server 5. I execute python manage.py syncdb i got this error: Exception Type: ImproperlyConfigured Exception Value:Error importing template source loader hsf.template.loaders.database: "No module named template.models" Exception Location: /usr/lib/python2.4/site-packages/Django-0.95.1- py2.4.egg/django/template/loader.py in find_template_source, line 56 can anyone helps please; I really need this to work properly as i am in a very bad deadline Thank you in advance; Mary Adel --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
dojo problem
here is my model : text = models.TextField(help_text='Rich Text Editing.') class Admin: js = ['js/admin/AddRichTextEditing.js'] list_display = ('title','owner','time_created') i have added the dojo folder in my media folder and i have added AddRichTextEditing.js in js/admin/AddRichTextEditing.js' I have no idea why the test are doesn't appear with text editor I am using django 0.95.1 and when i click on my browser http//:mywebsite/media/js/admin/AddRichTextEditing.js i can see the script any ide why is this happening Thank you ; Mary Adel --~--~-~--~~~---~--~~ 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 can i find a full source code for complete django
I am really soo happy and impressed for all your quick reply :) i can view the source now Thank you very much Mary adel On Feb 28, 11:18 pm, "Joseph Heck" <[EMAIL PROTECTED]> wrote: > You can also look intohttp://code.djangoproject.com/wiki/DjangoResources > > -joe > > On 2/28/07, Nathan R. Yergler <[EMAIL PROTECTED]> wrote: > > > > > On 2/28/07, Mary <[EMAIL PROTECTED]> wrote: > > > > thank you for the quick reply > > > I went the 1st link in the search which was > > >http://www2.jeffcroft.com/blog/2007/feb/25/two-new-django-sites-both-... > > > and i found that there is no source code on the site may be i am > > > stupid and i can't find it > > > However i left a comment there that i would like to see the source > > > code > > > Perhaps; with respect to Cheeserater (quoting from the URL above): > > > "Check the footer of the site for a link to the source code, all tar'd > > up nicely for your perusal and appropriation. " > > > With respect to Cab, there's a link right in the article to the > > project at Google Code,http://code.google.com/p/cab. > > > > Thank you > > > Mary Adel > > > On Feb 28, 9:50 pm, "Ramiro Morales" <[EMAIL PROTECTED]> wrote: > > > > mary > > > > > On 2/28/07, Mary <[EMAIL PROTECTED]> wrote: > > > > > > I want to look at a full source code of certain website that was > > built > > > > > with django so that i can learn more > > > > > cause i need to learn more about django > > > > > What if you try almost your exact question in google? > > > > > "full source code of website that was built with django" > > > > >http://www.google.com.ar/search?q=full+source+code+of+website+that+wa. > > .. > > > > > Regards, > > > > > -- > > > > 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: published permission
Please any help will be appreciated i have a very soon deadline :( Thank you in advance; Mary Adel On Feb 28, 6:31 pm, "Mary" <[EMAIL PROTECTED]> wrote: > Here is my model : > from django.db import models > from django.contrib.auth.models import User > from hsf.middleware import threadlocals > > class DonorProfile(models.Model): > owner = models.ForeignKey(User,related_name="owner",blank=True, > editable=False) > last_edited_by = > models.ForeignKey(User,related_name="last_edited_by",blank=True, > editable=False) > title = models.CharField(maxlength=60) > text = models.TextField() > time_created = models.DateTimeField( auto_now=True ) > published = models.BooleanField( default = False ) > # Set the owner and last_edited_by when appropriate > def save(self): > # If the object already existed, it will already have an id > if self.id: > # This object is being edited, not saved, set > last_edited_by > self.last_edited_by = threadlocals.get_current_user() > else: > # This is a new object, set the owner > self.owner = self.last_edited_by = > threadlocals.get_current_user() > super(DonorProfile,self).save() > > class Admin: > pass > list_display = ('title','owner','time_created') > > All what i want is to make the published field to appear for certain > user only in the admin interface > is there in way to do that with django pleasee --~--~-~--~~~---~--~~ 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 can i find a full source code for complete django
thank you for the quick reply I went the 1st link in the search which was http://www2.jeffcroft.com/blog/2007/feb/25/two-new-django-sites-both-source-available/ and i found that there is no source code on the site may be i am stupid and i can't find it However i left a comment there that i would like to see the source code Thank you Mary Adel On Feb 28, 9:50 pm, "Ramiro Morales" <[EMAIL PROTECTED]> wrote: > mary > > On 2/28/07, Mary <[EMAIL PROTECTED]> wrote: > > > > > I want to look at a full source code of certain website that was built > > with django so that i can learn more > > cause i need to learn more about django > > What if you try almost your exact question in google? > > "full source code of website that was built with django" > > http://www.google.com.ar/search?q=full+source+code+of+website+that+wa... > > Regards, > > -- > 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
published permission
Here is my model : from django.db import models from django.contrib.auth.models import User from hsf.middleware import threadlocals class DonorProfile(models.Model): owner = models.ForeignKey(User,related_name="owner",blank=True, editable=False) last_edited_by = models.ForeignKey(User,related_name="last_edited_by",blank=True, editable=False) title = models.CharField(maxlength=60) text = models.TextField() time_created = models.DateTimeField( auto_now=True ) published = models.BooleanField( default = False ) # Set the owner and last_edited_by when appropriate def save(self): # If the object already existed, it will already have an id if self.id: # This object is being edited, not saved, set last_edited_by self.last_edited_by = threadlocals.get_current_user() else: # This is a new object, set the owner self.owner = self.last_edited_by = threadlocals.get_current_user() super(DonorProfile,self).save() class Admin: pass list_display = ('title','owner','time_created') All what i want is to make the published field to appear for certain user only in the admin interface is there in way to do that with django pleasee --~--~-~--~~~---~--~~ 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: database field
Dear Aidas; Can you please give me more details for the solution as i can't understand how to develop this solution Thank you for your help :) Mary Adel On Feb 27, 12:12 pm, "Aidas Bendoraitis" <[EMAIL PROTECTED]> wrote: > I think, overriding the admin template for specific application would > be the most straightforward solution: > * create a template in your template dir admin/yourapp/change_form.html > * show some field there only if request.user has some permissions. > > Regards, > Aidas Bendoraitis [aka Archatas] > > On 2/25/07, Mary <[EMAIL PROTECTED]> wrote: > > > > > How can i create a field in a model that can't be seen by anyone that > > logs onto the admin interface except by certain user only > > > Thank you in advance; > > Mary Adel --~--~-~--~~~---~--~~ 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: viewing data
yes that is true and it has the following fields: owner; title;current date that the article has been saved;content Thank you :) On Feb 25, 11:58 pm, "akonsu" <[EMAIL PROTECTED]> wrote: > i assume that you have a model called "Article", right? what fields > does it have? > > konstanti > > On Feb 25, 4:36 pm, "Mary" <[EMAIL PROTECTED]> wrote: > > > Dear konstantin; > > > I think you are right as i wasn't clear so i will explain to you my > > situation and i would your help > > > I want to make a site for a magazine and in this magazin there is many > > types of articles [sport -technology ..] > > everyone in the magazine can write the article that he needs but just > > one person will be the responsible on the publish > > so i did the following: > > i have created a model that creates table contains the articles and > > the publisher of the article > > > then i want somehow to view all this articles to the responsible > > person on publishing the articles then this person can just make the > > articles published [i really don't know how i can develop this part] > > > any help will be appreciated > > > Thank you in advance; > > Mary Adel > > > On Feb 25, 11:06 pm, "akonsu" <[EMAIL PROTECTED]> wrote: > > > > Hello, > > > > your post is confusing. to start with, when you create models you do > > > not deal with any database tables. django creates tables for you from > > > the models. then, what you said about different titles, and admin is > > > not sufficient for me to understand what you are trying to achieve. > > > > konstantin > > > > On Feb 25, 4:00 pm, "Mary" <[EMAIL PROTECTED]> wrote: > > > > > I have a table that contains certain articles > > > > and i need to create a model that will view all the titles of this > > > > article to the admin person [from the admin interface] and he will > > > > select one of this articles to be published > > > > > Can anyone help me how to create this model?? > > > > > Thank you in advance ; > > > > Mary Adel- Hide quoted text - > > > - Show quoted text - --~--~-~--~~~---~--~~ 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: create a view
Yes that is true But i would like to show the data when certain field in the database =1 How can i write this view? Thank you in advance; Mary Adel On Feb 25, 11:01 pm, "akonsu" <[EMAIL PROTECTED]> wrote: > hello, > > do you mean like here:http://www.djangoproject.com/documentation/tutorial3/ > > konstantin > > On Feb 25, 3:51 pm, "Mary" <[EMAIL PROTECTED]> wrote: > > > How can i create a view that select data from database and then view > > it in html template > > i really appreciate any help :) > > > Thank you in advance ; > > Mary Adel --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
database field
How can i create a field in a model that can't be seen by anyone that logs onto the admin interface except by certain user only Thank you in advance; Mary Adel --~--~-~--~~~---~--~~ 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: viewing data
Dear konstantin; I think you are right as i wasn't clear so i will explain to you my situation and i would your help I want to make a site for a magazine and in this magazin there is many types of articles [sport -technology ..] everyone in the magazine can write the article that he needs but just one person will be the responsible on the publish so i did the following: i have created a model that creates table contains the articles and the publisher of the article then i want somehow to view all this articles to the responsible person on publishing the articles then this person can just make the articles published [i really don't know how i can develop this part] any help will be appreciated Thank you in advance; Mary Adel On Feb 25, 11:06 pm, "akonsu" <[EMAIL PROTECTED]> wrote: > Hello, > > your post is confusing. to start with, when you create models you do > not deal with any database tables. django creates tables for you from > the models. then, what you said about different titles, and admin is > not sufficient for me to understand what you are trying to achieve. > > konstantin > > On Feb 25, 4:00 pm, "Mary" <[EMAIL PROTECTED]> wrote: > > > I have a table that contains certain articles > > and i need to create a model that will view all the titles of this > > article to the admin person [from the admin interface] and he will > > select one of this articles to be published > > > Can anyone help me how to create this model?? > > > Thank you in advance ; > > Mary Adel --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
viewing data
I have a table that contains certain articles and i need to create a model that will view all the titles of this article to the admin person [from the admin interface] and he will select one of this articles to be published Can anyone help me how to create this model?? Thank you in advance ; Mary Adel --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
create a view
How can i create a view that select data from database and then view it in html template i really appreciate any help :) Thank you in advance ; Mary Adel --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
username in the database
hi all; I am creating a model that will create a table that will contain some articles that will be filled by admin people so i need to know how can i create a field in the database that adds the user name of the logged person when he add an article Also how can i create a field that add a time stamp thank you in advance; Mary Adel --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Picture uploads
Dear Django Team ; is there a way that i can make inserting a picture as a drag and drop ex:If i want to insert a picture in a certain field i have to just drag and drop it easilly to the place i want and it goes with its path easilly or at least is there a way that i can see all the pictures that is in the image folder on my server using the admin interface?/ Thank you very much Mary Adel --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
main menus
Dear all ; I am developing a normal website that has a main menues and i need this main menus to be editable i ll develop the pages as flatfiles and i need create another model that will have 7 text boxes containing the text of the main menus and then i can import the 7 text fields in the html of the flatpage template Can you please help as my dead line is tomorrow Thank you in advance --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
variable
how could i get a variable from the database in the views for example i have a model like this: class Menu (models.Model): menu_text=models.TextField(maxlength=200) and i need to get this variable from the database under certain condition for example when menu_text ='test' then write it in file Thanks Mary --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
views
i need your help in the following : how to write in the views a function that has a loop and this loop gets one field from my database so that i can take each field and put it in a file Thanks, Mary --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
'str' object has no attribute 'write' Exception
dear all i have this error:Request Method: GET Request URL: http://127.0.0.1:8000/xmlmenu/ Exception Type: AttributeError Exception Value: 'str' object has no attribute 'write' Exception Location: /var/www/xml-python/xmleditor/../xmleditor/menues/views.py in index, line 14 when i wrote this view: def index(request): output=open( '/var/www/xml-python/xmleditor/test.xml','w') output.write('') output.write('') latest_menu_list = Menu.objects.all().order_by('-id') output = ', '.join([m.menu_text for m in latest_menu_list]) output.write(output) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
'str' object has no attribute 'write'
i wrote this view def index(request): output=open( '/var/www/xml-python/xmleditor/test.xml','w') output.write('') output.write('') latest_menu_list = Menu.objects.all().order_by('-id') output = ', '.join([m.menu_text for m in latest_menu_list]) output.write(output) return HttpResponse(output) and i got this error 'str' object has no attribute 'write' can anyone help please Thanks, Mary --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: xml
I got an idea and i am tring it now and i think it will succeded if we considered the xml file as normal file and we write in it as we write in files using output.write('test here') this idea will solve the problem without using any python xml i think Howver thanks for all the people that answered me --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
xml
Can any one help in the following How could i return the data from the database in a xml file with certain format using the views in Django Thanks, Mary --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
drop down
Can anyone help in this How to create a drop down box in the admin interface that takes it is data from the database Thanks, Mary --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
dojo
hi all I am using magic removal i need to use text widget in my admin interface so can anyone tell me how i could do this Thanks, Mary --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: flatpages
Thanks Adrain for your support i am wondering is that means that i have to create another folder for flatpages in /usr/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/contrib/ and call it in my application NB.all my change is just in this file /usr/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/contrib/flatpages/views.py Thanks :) Mary On Wed, 2006-03-22 at 10:03 -0600, Adrian Holovaty wrote: > On 3/22/06, Mary Adel <[EMAIL PROTECTED]> wrote: > > I am working with flatpages and they are amazing for me and i customized > > them for my first needs then i am developing another site now that has > > another needs and i need to customize flatpages but in different way so > > how this could be done > > Hi Mary, > > This should be as simple as using your custom code in one place, and > other custom code in another place. If the two usages are different > enough, there's no point in sharing code -- just make them separate > applications. > > Adrian > > -- > Adrian Holovaty > holovaty.com | djangoproject.com > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
flatpages
Dear All , I am working with flatpages and they are amazing for me and i customized them for my first needs then i am developing another site now that has another needs and i need to customize flatpages but in different way so how this could be done Thanks, Mary --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
on line chages
Dear all, I need to ask a simple question and i hope u can help me :) is their any facility that can let user of django cms see the changes that he is doing and how the page will look like before clicking on save changes button cause may be he will not like the change when he submit it and he change his mind Thanks, Mary --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: view on site
Thanks a lot Konstantin :) it works --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: view on site
I did that but their is something that is very strange happened when i click on the view on site button it goes to microsoft site which is strange for me :( On Thu, 2006-03-02 at 18:00 +0530, Amit Upadhyay wrote: > Hi Mary, > > Put (r'^r/', include('django.conf.urls.shortcut')), in your URLConf. > > On 3/2/06, Mary Adel <[EMAIL PROTECTED]> wrote: > > i created my website using flatpages and they are amazing for > me and i on it goes > am very happy for that but their is a button on the page on > the right > hand side called (view on site) and when i clicked on it it > gave meing that is very starange > error says page not found what should i do to make this button > work > > > > > -- > Amit Upadhyay > Blog: http://www.rootshell.be/~upadhyay > +91-9867-359-701 > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
view on site
i created my website using flatpages and they are amazing for me and i am very happy for that but their is a button on the page on the right hand side called (view on site) and when i clicked on it it gave me error says page not found what should i do to make this button work Thanks, Mary --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
sending an email
i need to send an email from django with certain feilds and i used email.pf function and here is my view file: def php(request): send_mail('test', 'i am succeded', '[EMAIL PROTECTED]', ['[EMAIL PROTECTED]']) and i am having error which is: Exception Type: error Exception Value: (111, 'Connection refused') Exception Location: /usr/lib64/python2.4/smtplib.py in connect, line 302 Thanks, Mary --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
postgresql
I am using Django and now and i published my website but the problem is that admin is not that good and sometimes he damages somethings so i need to take a backup from the database of my project every night but i don't know how to do this if anyone can help me I am using postgresql --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: 1st page
Thanks a lot; On Sun, 2006-02-26 at 11:35 -0800, Jan Rademaker wrote: > > ('^$', 'django.views.generic.simple.redirect_to', {'url' : '/home/'}), --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
1st page
I ma using flatpage and i make my website cairo.demo.com and i have home page but i need to redirect the url cairo.demo.com to cairo.demo.com/home/ as i have flatpage called home how is this could be made is it appache or what Thanks for all your help, --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Template
i need to say in the template this but i don't know how: i want to say if page.title =menu so the output will be page.content as i need to retreive from the database the content of the page that has title called menu and this is in my template can anyone help --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: flatpages
really this path will be constant to all flatpages and all what i need is how i could get the path from the database and put it in the template is their a way for that On Tue, 2006-02-21 at 20:02 -0500, Tom Tobin wrote: > On 2/22/06, Mary Adel <[EMAIL PROTECTED]> wrote: > > > > how to call in flatpage aa content i have saved in the database > > ex i saved the path of the css and java script in the database and i > > need to call it in my flatpage so how i could do this > > If those files change on a flatpage-by-flatpage basis, you might be > better off making your own version of Flatpages with fields for the > CSS/JS locations; you could then pass those into the template as > appropriate. > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
flatpages
how to call in flatpage a content i have saved in the database ex i saved the path of the css and java script in the database and i need to call it in my flatpage so how i could do this --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Css and Javascript
I need to save the Css and the Java script file in the database so as i can make the user change it easily so how i can do this in an easy way Thanks, Mary --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: adding page
It is working now thanks On Wed, 2006-02-22 at 03:36 +, Mary Adel wrote: > I did and i have the tables in the database > :( > On Tue, 2006-02-21 at 11:24 +, coulix wrote: > > did you run pythob manage.py install flatpage ? > > > > > > > > > > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: adding page
I have anither questions on the flatepage Does the flat page need any configuration for the url.py file or no cause i made a faltepage but it didn't appear in the browser so i really don't know the steps to make it appear in the browser Thanks, Mary On Mon, 2006-02-20 at 14:03 -0500, Tom Tobin wrote: > On 2/20/06, Mary Adel <[EMAIL PROTECTED]> > wrote:http://www.djangoproject.com/documentation/model_api/flat > > > > I have a question and i have deadline tomm :( and really i need help > > I build a model called pages which has page name and page link and page > > content and then i build the database and i make the admin interface to > > fill all the data but the problem is that: > > I need to add page dynamically without adding by hands in the url.py > > file any lines and then add a function in the view.py file > > For a start, have you taken a look at the flatpages module? Your need > sounds fairly close to what flatpages does, as far as I can tell. > > http://www.djangoproject.com/documentation/flatpages/ > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: adding page
Thanks i ll have a look on it now and i ll see how it will help me On Mon, 2006-02-20 at 18:21 +0100, Sime Ramov wrote: > On Feb 20, 2006, at 8:11 AM, Mary Adel wrote: > > > > http://www.djangoproject.com/documentation/flatpages/ > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
adding page
I have a question and i have deadline tomm :( and really i need help I build a model called pages which has page name and page link and page content and then i build the database and i make the admin interface to fill all the data but the problem is that: I need to add page dynamically without adding by hands in the url.py file any lines and then add a function in the view.py file I mean to make adding page dynamically so as the client can add page without any need to the developer I don't know if it is easy or not but please help Thanks Mary --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: url in Tinymce
I found the solution and it is in textarea.js as u can set the url class their :) On Sun, 2006-02-12 at 16:00 +0200, Mary Adel wrote: > Dear All , > I can't change the colors of the url in Tinymce althoughi could change > the font and size and evrything can anyone help me how i could change > the color of the url > > Thanks, > Mary > >
url in Tinymce
Dear All , I can't change the colors of the url in Tinymce althoughi could change the font and size and evrything can anyone help me how i could change the color of the url Thanks, Mary
Re: Tiny myce
Thanks very much it is working now and i am testing it but the problem that i am facing a problem is that TinyMyce is changing the Html code that i am writing i don't know why? and how i could let him write the html code that i need as example my Url has certain color but he changes them to the blue color which i don't want On Wed, 2006-02-08 at 12:32 -0800, akaihola wrote: > The tiny_mce editor should appear nevertheless. > > View the source of an admin page where tiny_mce should appear. Check > the tags. You should have something like this (I've set my > ADMIN_MEDIA_PREFIX to '/admin_media/'): >