cannot launch runserver

2015-02-08 Thread th . granier
hello i have installed "django 1.7 and python3.4" i have installed "libapache2-mod-wsgi-py3" my settings.py is : *ALLOWED_HOSTS = []# Application definitionINSTALLED_APPS = ( 'django.contrib.admin','django.contrib.auth',

Re: export DJANGO_SETTINGS_MODULE

2015-01-21 Thread th . granier
Hello i have sesinstalled django and re installed withdebian package when i lauch command django-admin.py startproject website here is what i get: *python3.4Python 3.4.2 (default, Dec 27 2014, 13:16:08) [GCC 4.9.2] on linuxType "help", "copyright", "credits" or "license" for more

export DJANGO_SETTINGS_MODULE

2015-01-21 Thread th . granier
Hello i have just installed django 1.7 on Debian jessie via synaptic when i start a console, import django is OK print(django.get_version()) ---> version 1.7.2 Now i try to launch the command "django-admin.py startproject WebSite" i get the error: *Traceback

Re: installation of mysqlclient

2015-01-19 Thread th . granier
On Monday, January 19, 2015 at 7:55:06 PM UTC+1, th.gr...@free.fr wrote: > > Hello > > i am trying to use Dkango with Python3.4.2 and mysql > > i have downloaded mysqlclient-1.3.4 but i don't know how to install it. > it's a .whl file > > Can you help me please? > > Many thanks > > Thanks but i

installation of mysqlclient

2015-01-19 Thread th . granier
Hello i am trying to use Dkango with Python3.4.2 and mysql i have downloaded mysqlclient-1.3.4 but i don't know how to install it. it's a .whl file Can you help me please? Many thanks T. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: apprendre Django

2015-01-14 Thread th . granier
je me suis mis a apprendre Django et python3.4 et c'est un regal Pourquoi Django? parce que c'est framework tres puissant, tres logiquesuffisammant complexe pour etre tres interessant et reutilisable Pourquoi Python? parce que je voulais apprendre un language universel et puissant qui me permett

apprendre Django

2015-01-14 Thread th . granier
Bonjour -- 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@googlegroup

Re: Apache and Djagno

2015-01-05 Thread th . granier
hello i have installed wsgi but i don't know how to use apache instead of the Django's runserver default help!!! Thanks Le samedi 3 janvier 2015 17:45:00 UTC+1, SungHo Park a écrit : > > Hi > I have tried to use Django in Apache, but it doesn't work. > > My Django's version is 1.7.1 so I refered

Re: how to use apache instead of django_server

2014-12-29 Thread th . granier
Merci Thanks just another question when you don't use apache but the internal server of Django you start the command runserver for loging to django admin how to connect with apache? Many thanks T. Le lundi 29 décembre 2014 13:11:01 UTC+1, th.gr...@free.fr a écrit : > > Hello > > i'm a very ne

how to use apache instead of django_server

2014-12-29 Thread th . granier
Hello i'm a very new user of python and i'd luke to install Django i want to use apache server instead of the internal Django server. i read the documentation and installed wsgi but now i don't know how to connect Django admin via apache!! thanks for your help T -- You received this message b

django problem with mysql and apache

2014-12-23 Thread th . granier
Hello i have just installed Django on Ubuntu 14.04 and i'd like to know 1 how to do a multilingual site? 2 how to do a forum or use one existent 3 during the installation i have this probleme about mysql root@linux-pc:/home/siteweb# python3.4 manage.py migrate Traceback (most recent call la

Re: How to access the request object in a decorator

2008-11-17 Thread TH
Thanks a lot Bruno! That really helped :) On Nov 17, 3:20 am, bruno desthuilliers <[EMAIL PROTECTED]> wrote: > On 17 nov, 10:02, TH <[EMAIL PROTECTED]> wrote: > > > > > Hello, > > > I wanted to redirect a logged in user if he access certain page. Fo

How to access the request object in a decorator

2008-11-17 Thread TH
Hello, I wanted to redirect a logged in user if he access certain page. For example i do not want the user to access registration page if he is logged in. A simple way to do this is: def register(request): if request.user.is_authenticated(): return HttpResponseRedirect('/ some_nice_

Re: unchecked checkboxes not accessed through request.POST['check_name']

2008-11-17 Thread TH
As far as i remember according to the HTML specs the unchecked values are not sent with form post. So you can use some logic in your server side code to deduce the unchecked values. (Since you render them in the first place so may be you have a list of items from database) or if you really want