Re: Please help me out, I tried to get sync for whole day @@

2014-04-20 Thread Gerald Klein
'NAME': 'mysite'), the paran doesn't belong there On Sat, Apr 19, 2014 at 10:11 AM, Toan ComS wrote: > > > >> DATABASES = { >> 'default': { >> 'ENGINE': 'django.db.backends.sqlite3', >> 'NAME': 'mysite'), >> } >> } >> > > Is it wrong? > > -- > You received this message

django, mod_wsgi, apache and sharing media files (video) from a separate directory

2014-04-20 Thread Adam Teale
Hi Guys, I am building a django app that runs out of my /Users/me/Dropbox directory. Localhost is pointed at my /Users/me/Sites directory. mod_wsgi installed. apache installed django installed and app working fine in development mode I am trying to embed media in a template This media

Exception Value: (502, 'Error: command "EHLO" not implemented')

2014-04-20 Thread rafiee.nima
Hi Im using django send mail and here is my view code . def send(request): send_mail('subject', 'message, 'mym...@gmail.com', ['mym...@gmail.com'], fail_silently=False) and I got thie error : Traceback: 110. self.connection.sendmail(from_email, recipients, message.as_byte

Re: Django

2014-04-20 Thread Mark Phillips
It all depends on how you learn. You can read the API documentation and gain a good understanding of what django provides as a framework. Or, read the source and the comments to really understand what is going on. Reading the source is a great use of your time. Personally, I find it easier to lear

Re: URL variables failed to be found from POST

2014-04-20 Thread Russell Keith-Magee
On Sat, Apr 19, 2014 at 6:36 PM, nobody wrote: > Hi, > > I set up an URL when cliking a submit button, I got > http://myhost.com/user/?userid=5987. > > If it is a REQEST, I can get useid = request.GET['userid']. But in POST, I > could not get the variable from the POST, I could not even find the

Re: POST URL questions

2014-04-20 Thread Ramón Carrillo
Hi, POST variables are appended to the HTTP request body instead of the URL [0]. If you want a variable to be available in the request.POST dictionary, the browser must send it as a POST variable (in the request body). You could use a hidden input to do it: [0] https://developer.mozilla.org

Re: django, mod_wsgi, apache and sharing media files (video) from a separate directory

2014-04-20 Thread Ramón Carrillo
Hi Adam, >From your settings.py I guess the expanded url is something like /PROYECTOS/file.xyz, right? But, in your Apache alias your are serving the url /proyectos/ [0], and urls are case sensitive unless you're using mod_speling [1]. I think "Alias /PROYECTOS/ /PROYECTOS/" should do the trick.