Cache for individualt request.user???
i don't know if the cache work for views with the content dependent from user... example. @login_required def webapp(request): grupos = Grupo.objects.filter(usuarios = request.user).order_by('grupo') return render_to_response('accounting/webapp.html',{'grupos':grupos},RequestContext(request)) if i turn on the cache for view@cache_page(60*10) the user see your groups? or see the groups for the firts user to generete the cache? and if this case? what can i do? all my views dependent from request.user =S -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/OusOKXBfNoAJ. 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.
plugins django-apps in sidebar with eval()
i want made a plugin sistem for one CMS my idea is: #plugin def plugin (): do somting return render_to_string('plugin.html',{}) and one database whit plugins method name "Plugin_sidebar" #view def home(request): ps = Plugin_sidebar.objects.all() return render_to_response('home.html',{'ps':ps}) and template whit custom tag eval() {%for item in ps %} {%eval item%} #custom tag {%endfor%} with this sistem the user can add and remove plugins... what do you think? -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/LhdpKj6M3tUJ. 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: Looking for Django IDE
komodo edit http://www.activestate.com/komodo-edit El domingo 1 de abril de 2012 13:30:03 UTC-5, mark escribió: > > What IDE do you use/recommend for developing django web sites? Or, if not > an IDE, what editor/setup is most useful? I am developing on Linux version > 3.1.0-1-amd64 (Debian 3.1.8-2). I would rather use something open source. I > use eclipse for developing android/java projects. Since I am using django > in conjunction with an android project, I don't want to use the plugin for > eclipse. Switching between python and java perspectives is a little > annoying, so I thought I would find a separate ide for my django work and > just alt-tab between them. > > I have tried gedit, but I cannot get the django plugin to work. I am > looking at ninja, but there does not appear to be a django plugin. > > Thanks, > > Mark > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/MYUmTKK0fZEJ. 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.
how to make template for startapp and startproyect?
hello.. i wish make my templates for django-admin.py startproyect and startapp but i dont know how, and i dont find documentation to explain how to make it (i find documentation from how to use, but not how to make) THX! -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/ibUgeiUg_kgJ. 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.
tornado server in production
now whit django 1.4 is beary easy to run tornado server. import os import tornado.httpserver import tornado.ioloop import tornado.wsgi import sys import django.core.handlers.wsgi #sys.path.append('/home/lawgon/') # path to your project ( if you have it in another dir). def main(): os.environ['DJANGO_SETTINGS_MODULE'] = 'revista.settings' # path to your settings module application = django.core.handlers.wsgi.WSGIHandler() container = tornado.wsgi.WSGIContainer(application) http_server = tornado.httpserver.HTTPServer(container) http_server.listen() tornado.ioloop.IOLoop.instance().start() if __name__ == "__main__": main() so... i whis try tornado in VPS production becouse is more simple to configure ;) the only probles is i need ever up, and i dont know who to check if tornado runs whit crontab and restart if dont run.. Sujestions? this vps is for thest little proyects whit 100 visits/day so i dont have a problem for tornado performance -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
django database cache for longtime?
i need cache a page where i'm process a lot information and i dont wish process again and i dont wish keep in memory RAM, (maybe nobody ever review) so i wish put this page in a database cache but what can i do for never expire? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
i save text with html in djanfo admin and when out its ilegible
... example.. y sabe this in django admin in a thextfield bla bla bla bla bla more bla bla bla and in my page... showbla bla bla bla
is very annoying... and i dont know who to fix it... -- 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.
more bla bla bla bla
Re: i save text with html in djanfo admin and when out its ilegible
no... autoescape on dont work forceescape dont work =/ autoescape off dont work =/ example {% autoescape on %} {{grup.grupo}} {% endautoescape %} On 4 jul, 06:47, Kenneth Gonsalves wrote: > On Mon, 2011-07-04 at 04:02 -0700, Kase wrote: > > and i dont know who to fix it... > > search in the docs for autoescape. > -- > regards > KGhttp://lawgon.livejournal.com > Coimbatore LUG roxhttp://ilugcbe.techstud.org/ -- 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: i save text with html in djanfo admin and when out its ilegible
Works!! thx but i dont like put ever {% autoescape off %} On 4 jul, 07:08, Kenneth Gonsalves wrote: > On Mon, 2011-07-04 at 05:06 -0700, Kase wrote: > > example > > {% autoescape on %} > > {{grup.grupo}} > > {% endautoescape %} > > {% autoescape off %} > {{grup.grupo}} > {% endautoescape %} > -- > regards > KGhttp://lawgon.livejournal.com > Coimbatore LUG roxhttp://ilugcbe.techstud.org/ -- 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: i save text with html in djanfo admin and when out its ilegible
me too.. but i dont know other options for format text in i need deliver in 30 minuts! an i finish! what do you do for a sistem like a blog? PD: i put tiny_mce (not the app) the js and edit the admin template... but the format of tinymce dont work too =/ On 4 jul, 07:41, Andres Pardini wrote: > 2011/7/4 Kase > > > Works!! thx > > > but i dont like put ever > > > > i dont think its right save html tag in database unless its a blog like > webpage,,, > > my opinion -- 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.
I need to do reports, and I would like reports that are integrated with django admin.
I have no problem to make my pages with reports of objects, but I like that are integrated with django admin, in the same tuple in the object list. i dont know if exist extention, but one of these reports is complex = / I have an object, insurance, customer, policy, policy_year and a i need a report containing the information of the client relationship, policies (foreign key (customer)) policy_year (foreign key (policy)) and display somthing like this Customer: jon doo Policy: x 2009 2010 2011 POLICY AND 2008 2009 I would like to make it accessible from the list of objects "customer" PS: i know how to display this info in to view + template but really i like to display in django admin ... any suggestions? -- 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.
delete unnecessarily fields =D
I need to lower the amount of files on my server becouse is a shared server. so I wonder if I can delete the folder that uses django during instalaccion (where the setup.py) and I also wonder if I can delete the language files that do not use, and where I can find -- 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: delete unnecessarily fields =D
i have 30 gb disk and meaby 15 webs... some dont use, so delete it my problem is not the space of disk, my problem is the count of fileds =/ only 50 000 > in this momento in have 39 000 so i delete webs dont in use, and i like delete fields dont in use too an i think that a field for lenguages are unecesarilys... i know is not much space... meaby 200kb? put i think meaby have 1000 fields On 7 jul, 05:48, Calvin Spealman wrote: > It deleting "the language files that do not use" will save you any > significant portion of your storage quota, then you seriously need a > new hosting provider. > > On Thu, Jul 7, 2011 at 4:18 AM, Kase wrote: > > I need to lower the amount of files on my server becouse is a shared > > server. > > > so I wonder if I can delete the folder that uses django during > > instalaccion (where the setup.py) and I also wonder if I can delete > > the language files that do not use, and where I can find > > > -- > > 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 > > athttp://groups.google.com/group/django-users?hl=en. > > -- > Read my blog! I depend on your acceptance of my opinion! I am > interesting!http://techblog.ironfroggy.com/ > Follow me if you're into that sort of thing:http://www.twitter.com/ironfroggy -- 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.
blog breack after 10 post x__x
realy i dont know how to expres this.. i need this (is a blog app) 1) post 2)post 3)post ... 10)post page 1,2,3,4,5,6,7,8.last when clic 2 list of post are 11)post 12)post 20)post django have somthing to do this in the easiest my code is the (obius) {%for x in post%} {{x.title}} {{x.post}} by:{{x.user.username}} about {(x.time|timesince)} ago {%endfor%} -- 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.
No modelue name localeurl ( ">_<)
i try internationalization whittransmeta, localeurl and rosette transmetta and rosette works ok all put in path /usr/local/pytho27/site-pakage but localeurl dont work! manage.py runserver trowError: No module named localeurl =/ -- 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: No modelue name localeurl ( ">_<)
oh, im estupid, i put the rosetta and transmeta in my site path but not localeurl... but, i like to put in a generic path and not duplicate in every proyect =/ On 31 jul, 03:43, Kase wrote: > i try internationalization whit transmeta, localeurl and rosette > > transmetta and rosette works ok > > all put in path /usr/local/pytho27/site-pakage > > but localeurl dont work! > > manage.py runserver trow Error: No module named localeurl > > =/ -- 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.