methode mapping

2018-01-23 Thread Tonton
hello i need to call multiple api with different methode name for the same informations. i 'd like to create somme dictionnaire or some things call vocabulary that easy to add api provider like api = get_api(providername) res = api.providerA["method"](params) with providerA={'method': get_some

Re: Missing manage.py

2012-04-16 Thread Tonton
after project you need to do start app for making module T. On Mon, Apr 16, 2012 at 8:17 PM, Buddy Lindsey, Jr. wrote: > If you are using Django 1.4 check in the application folder of your > project below your project folder. It should be in there. > > > Faeez Abd Rahman wrote: > > > Hi, > > I h

Re: how use this snippet

2011-05-18 Thread Tonton
r heard this before so i think it will be helping me to read this thanks lot ! Tonton -- 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

how use this snippet

2011-05-17 Thread Tonton
hello i'd like to uderstand how to use this snippet http://djangosnippets.org/snippets/2225/ i don't understand how it works and if it's work does anyone use it before ? regards T. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Re: i am suspicious !

2011-04-26 Thread Tonton
now it 's work def cleanPath(file): path= settings.MEDIA_ROOT+"/here/"+str(file) if default_storage.exists(path): default_storage.delete(path) return "file deleted : "+str(file) si simple ! :o) tonton On Fri, Apr 22, 2011 at 9:59 AM, Tonton

i am suspicious !

2011-04-22 Thread Tonton
like to let my users (authenticate user ) to remove table and all data inside from the website thank's for all Tonton -- 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. T

Re: Authentication system

2011-04-04 Thread Tonton
> Briefly, your middleware will check if request.user either > is_authenticated or is_anonymous, then issue a redirect for those not > logged in. > > Shawn > > i don't know maybe test the login state in your urls.py before evrything tonton -- You received th

Re: Authentication system

2011-04-04 Thread Tonton
i beleve it is @login_required before the method in views.py to protect access by decorators http://docs.djangoproject.com/en/1.3/releases/1.2/ On Mon, Apr 4, 2011 at 2:22 PM, GOUTAM KUMAR RANA wrote: > How to port authentication system to every page so that only logged in > will able to view

Re: How to plug in Python: CGI

2011-01-19 Thread Tonton
-apache-and-django-on-windows/ good luck tonton -- 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-user

Re: How to plug in Python: CGI

2011-01-18 Thread Tonton
GIHandler() things to replace DjangoProject by the name of your project ! / is your web root so no other path will work instead you add an alias for apache Alias /aOtherPath/ /taget/to/a/OtehrPater/ tonton On Tue, Jan 18, 2011 at 2:22 PM, ashdesigner wrote: > Hello, > > On my VPS, I

Re: default _ storage path

2011-01-12 Thread Tonton
! regards tonton On Tue, Jan 11, 2011 at 5:10 PM, prasad iyer wrote: > Give www-data rwx permission /va/www/dir and start the application > using the user who is member of www-data > > On Jan 11, 4:56 am, Tonton wrote: > > hello > > may we use default storage to write o

default _ storage path

2011-01-11 Thread Tonton
hello may we use default storage to write outside of project or only in media because i can writ in media path ... my porject : /home/user/project and i 'd like to write in /var/www/myoutputdirectory own by what ever you want but i've truy www-data and the user in my WSGIDaemon in apache conf f

Re: Error on Production Server (TemplateSyntaxError: Caught ImportError while rendering: No module named testapp)

2011-01-07 Thread Tonton
hello i am not sure if i can help you but from my config use os.environ["DJANGO_SETTINGS_MODULE"] = "bellcher.settings" (like in installed apps) or mv django.wsgi in /Bellcher WSGIScriptAlias / /www/django/bellcher/django.wsgi regards On Fri, Jan 7, 2011 at 2:26 PM, Thomas M wrote: > Hi, > >

Re: Django with PostgreSQL on Debian.

2011-01-06 Thread Tonton
on my ubuntu in the settings . py 'ENGINE': 'django.db.backends.postgresql_psycopg2', i've seen works with 'ENGINE': 'postgresql_psycopg2', On Thu, Jan 6, 2011 at 5:32 PM, Peter L. Berghold wrote: > Having gotten through the first few obstacles, I am now trying to build > an ap

Re: template concat of string trouble (solved)

2010-12-20 Thread Tonton
{% autoescape *OFF* %} {{ script }} {% endautoescape %} On Mon, Dec 20, 2010 at 3:41 PM, Tonton wrote: > yes i am reading on this > > but this > {{script|escapejs}} seems to not work > i investigate more > > thanks > > > On Mon, Dec 20, 2010 at 3:37 PM, Tom

Re: template concat of string trouble

2010-12-20 Thread Tonton
yes i am reading on this but this {{script|escapejs}} seems to not work i investigate more thanks On Mon, Dec 20, 2010 at 3:37 PM, Tom Evans wrote: > On Mon, Dec 20, 2010 at 2:20 PM, Tonton wrote: > > hello > > > > i don't the the name of ' and this &q

template concat of string trouble

2010-12-20 Thread Tonton
w/geomod/demo.map&';, // make comment for the rest of the line :( and & became & and ' became ' so my script not working did someone knows how to change this ? regards tonton -- You received this message because you are subscribed to the Google Groups "D

Re: use table not in the model

2010-12-16 Thread Tonton
possible but how to use varaible ine the request ? here it is my table name store in y :) On Thu, Dec 16, 2010 at 4:02 PM, W. Craig Trader wrote: > Tonton ... > > See <http://docs.djangoproject.com/en/1.2/topics/db/sql/> for details on > how to use so-called 'raw' SQL (

use table not in the model

2010-12-16 Thread Tonton
Hello i like to use some database table that are not in my models.py in fact some of table will be add and remove by script is it possible to use some sql queries with it ? on not at all ? regards tonton -- You received this message because you are subscribed to the Google Groups "D

Re: urls and form

2010-10-05 Thread Tonton
On Mon, Oct 4, 2010 at 3:20 PM, Tonton wrote: > hello > > i use this form to have a choice list and change to another on select > > > > {{carte.titre}} > {% for carte in latest_carte_list %} > {{carte.ti

urls and form

2010-10-04 Thread Tonton
is my urls line to use http://mywebsite/cartes/id what i want to have (r'^(?P\d+)', 'suivix'), and it is not working great :o( so i don't know what to write in my form to have /cartes/id or in my urls.py file to translate /cartes/?=id in /cartes/id ? Thanks for y