Re: upload image

2012-06-17 Thread Kurtis Mullins
> > On Sun, Jun 17, 2012 at 2:33 AM, Satvir Toor > wrote: > but when i try to submit data it makes the upload file empty and gives > notification this field(file upload) is required. Make sure you set up the Form enctype correctly. () MEDIA_ROOT = > '/usr/local/lib/python2.7/dist-packages/d

Re: Django and PHP webhosting in Germany

2012-06-17 Thread Mike Ryan
Are "which webhost" questions really relevant to this list? I just did a quick search, and it seems this question is coming up more and more frequently. It seems quite out of place here, IMHO. I use this list to see interesting ways people use Django, or learn from other people's answers - not

Re: no module named books found

2012-06-17 Thread kooliah
On 06/17/2012 06:23 AM, Sabbineni Navneet wrote: It still shows the same error . Do we have to create a database with that name before. How do we check if i have the python-mysqldb package . -- You received this message because you are subscribed to the Google Groups "Django users" group. To p

Re: no module named books found

2012-06-17 Thread Sabbineni Navneet
I have Mysqldb installed. It still shows the same error. -- 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...@

Re: Why doesn't Django support subdomain url conf?

2012-06-17 Thread Alireza Savand
Thank you Rafał, it's useful. But it's will be reasonable if django own subdomains built-in. On Saturday, June 16, 2012 6:04:36 PM UTC+4, Rafał Stożek wrote: > > You may want to take a look at this project: > https://github.com/ennio/django-hosts > > On Saturday, June 16, 2012 1:48:16 PM UTC+1, A

Re: Django and PHP webhosting in Germany

2012-06-17 Thread sjtirtha
Hi Mike, I've checked the link before. The list shows me only 2 providers in Germany which offer php and python from one box. There are some other providers from Swiss, but they do not offer php. That's why I asked question here. My following question is also, if I do not have any root access, wha

Forum app for Django?

2012-06-17 Thread galgal
What forum app dou you reccomend. I need a standard functionality like moderators, nested categories, registration etc. -- 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/dj

Re: How do I get django working without having to manually run the server?

2012-06-17 Thread Phang Mulianto
The python manage.py runserveris intended for fast development time to kick start the apps. you don't need to prepare the apache wsgi stack first, especialy if you want to try something new like django newcomer. it's took time and knowledge to prepare the apache wsgi. but it still an option i

Re: Django and PHP webhosting in Germany

2012-06-17 Thread Daniele Procida
On Sun, Jun 17, 2012, Mike Ryan wrote: >Does anyone else feel that "which webhost..." questions should be politely >responded to with a link to >https://code.djangoproject.com/wiki/DjangoFriendlyWebHosts, and a request >not to post similar questions in future? Not really, it seems a perfectl

Re: Django and PHP webhosting in Germany

2012-06-17 Thread Nick Apostolakis
On 16/06/2012 11:47 μμ, Carlos Daniel Ruvalcaba Valenzuela wrote: Try Hetzner in Germany, they are a solid hosting company with reasonable prices, their dedicated hardware is well know for being a great value. http://www.hetzner.de/ You can get a virtual server from Hetzner with a monthly

Django 1.3 Admin Changelist column alignment

2012-06-17 Thread kooliah
I'm trying to change alignment of the number columns in the changelist, instead of default left alignment for all, i would like to have left for the text and right for the numbers. Is it possible to do it in the admin.py overriding the default class or i have to make some filters and apply t

Re: Django 1.4 and google app engine

2012-06-17 Thread Gebriel Abebe
Please I want to know the same thing? -- 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/-/bU3CTr2hjmQJ. To post to this group, send email to django-users@google

Re: Django and PHP webhosting in Germany

2012-06-17 Thread Egon Frerich
Am 16.06.2012 22:24, schrieb sjtirtha: > Hi, > > can somebody recommend a good and cheap web hosting for django and > php(wordpress)? > I'm looking something below 10 € monthly, only for small apps and blogs. > > Regards, > Steve > I recommend www.raumopol.de/ Our django website schwachhausen-nor

Recover User by SESSIONID

2012-06-17 Thread upmauro
Hi ! Sorry my english. I using uploadfy in my website, this basically is one SWF to upload files. This works fine, but my question is "how recover logged user in post uploader request?" I have SESSIONID in form and my swf post this, but i don't know recover user by session id. Please help-me,

Re: Django 1.4 and google app engine

2012-06-17 Thread Ernesto Guevara
In GAE only using django-norel, a fork of django with no join's queryset. https://developers.google.com/appengine/articles/django-nonrel Or using in Google Cloud SQL: https://developers.google.com/appengine/docs/python/cloud-sql/django But is a paying service. 2012/6/17 Gebriel Abebe > Plea

Re: Recover User by SESSIONID

2012-06-17 Thread Sultan Imanhodjaev
Hey, In my case I use generated hash from *user.id* and *user.date_joined*passed via *formData* this is poor implementation and potentially insecure but for a while it works. Sultan, Thanks On Sun, Jun 17, 2012 at 9:15 PM, upmauro wrote: > Hi ! Sorry my english. > > I using uploadfy in my web

Re: no module named books found

2012-06-17 Thread Ernesto Guevara
"Do we have to create a database with that name before." Yes, you need create the database "xam" (from mysql query browser) before running syncb. 2012/6/17 Sabbineni Navneet > I have Mysqldb installed. > It still shows the same error. > > > > -- > You received this message because you are subs

Re: Recover User by SESSIONID

2012-06-17 Thread Mauro Alexandre
Sultan, great ! Guess I'll do that too, it's very unsafe. Thanks for the tip! 2012/6/17 Sultan Imanhodjaev > Hey, > > In my case I use generated hash from *user.id* and *user.date_joined*passed > via > *formData* this is poor implementation and potentially insecure but for a > while it works

CSS not appearing in production mode.

2012-06-17 Thread Jak
Hello All, I am having a difficult time getting the CSS for my web app to appear when I turn debug mode to false. When debug mode = True all the images show up fine, but when I turn it to false only the html appears. What do you think could be happening? Thanks Jak -- You received this mes

Re: no module named books found

2012-06-17 Thread Sabbineni Navneet
i have created a database named xam. But it still shows the same error:django.core.exceptions.ImproperlyConfigured: settings.DATABASES is improperly configured. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: CSS not appearing in production mode.

2012-06-17 Thread Kev Dwyer
Jak wrote: > Hello All, > > I am having a difficult time getting the CSS for my web app to appear when > I turn debug mode to false. When debug mode = True all the images show up > fine, but when I turn it to false only the html appears. What do you think > could be happening? > > > Thanks > >

Re: How do I get django working without having to manually run the server?

2012-06-17 Thread Kurtis Mullins
I did forget one important (and very useful feature) that the runserver contains -- the automatic reload whenever you modify files. I was just curious if it provided more debugging information than otherwise would be provided based upon that statement. On Sun, Jun 17, 2012 at 6:48 AM, Phang Mulian

Trying to implement "outlines"

2012-06-17 Thread Melvyn Sopacua
Hello, I'm trying to implement a ModelAdmin that uses the opposite of Inlines. In this case the Inline field is the target of the foreign key, not the model that has the foreign key reference. In my case, the foreign keys allow NULL, because I'm using an external source to provide me with some inf

Re: Stuck already on step one, django on windows

2012-06-17 Thread Melvyn Sopacua
On 14-6-2012 17:25, Daniel Roseman wrote: >> I rent space on a server run by hostmonster.com. Would it be a better >> idea for me to learn how to do all this straight on my server instead of >> windows anyways? I don't even know how to tell if the django stuff works >> within my hosting envir

Re: Where are my posts?

2012-06-17 Thread Melvyn Sopacua
On 17-6-2012 0:18, Thomas Lockhart wrote: > On 6/16/12 2:35 PM, Laurence MacNeill wrote: >> How do I get privileges to post in this group? I've posted two >> questions, and have not seen them pop up yet... Who do I need to >> contact to get posting privileges? I really was hoping to get these >>

Re: How do I get django working without having to manually run the server?

2012-06-17 Thread Àlex Pérez
One question, The automatic reload whenever you modify the files. There are an alternative to do that with mod_wsgi? or anything else? Thanks! 2012/6/17 Kurtis Mullins > I did forget one important (and very useful feature) that the runserver > contains -- the automatic reload whenever you modi

Re: Django on Mac OS X

2012-06-17 Thread Moshe Voloshin
Tried homebrew - this was a response to another reply Thomas. brew update Here I tried: brew install postgresql but had this error Error: Failed executing: make install-world (postgresql.rb:67) So instead I did this: brew install postgres --no-ossp-uuid --no-python --no-rubie Then when

AuditTrail

2012-06-17 Thread Lee Hinde
I'm starting a new project that requires auditing and I see https://code.djangoproject.com/wiki/AuditTrail and I'm wondering if anyone would like to warn me off or point me a different direction. Based on the write up, AuditTrail looks like it'd do the job, but, it's never that easy, right? --

Re: Recover User by SESSIONID

2012-06-17 Thread Mauro Alexandre
I Solved ! in formData of uploadfy i add {{ request.COOKIES.sessionid }} and in my view i used : session = Session.objects.get(session_key=request.COOKIES['sessionid']) uid = session.get_decoded().get('_auth_user_id') user = User.objects.get(pk=uid) Works Fine ! Thanks :) 2012/6/

Re: Forum app for Django?

2012-06-17 Thread Jordon Wing
On Sunday, June 17, 2012 3:46:16 AM UTC-7, galgal wrote: > What forum app dou you reccomend. I need a standard functionality like > moderators, nested categories, registration etc. I have yet to find a good one, honestly. Here's a link for a comparison of forum apps: http://www.djangopackages.

django-admin.py startproject mysite

2012-06-17 Thread stikic
Hello, I installed django and added it to my PATH in windows. When I run django-admin.py startproject mysite as follows, I get error. How can I solve this?: C:\Python27\MyFiles\mysite>C:\Python27\Lib\site-packages\django\bin \django-admin .py startproject mysite Usage: django-admin.py subcommand [

Re: django-admin.py startproject mysite

2012-06-17 Thread şahin mersin
Did you restart your computer? -- 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

Various thoughts on authentication, registration and social logins

2012-06-17 Thread Mattias Linnap
Hi all, I'm trying to build a nice authentication flow for a website. In my opinion, a good flow would be: 0. There are no usernames, emails are used instead, 1. User signs up by just entering their email address, 2. An account is created for them, and a temporary plaintext password, along with a

Re: upload image

2012-06-17 Thread Satvir Toor
On Sun, Jun 17, 2012 at 12:36 PM, Kurtis Mullins wrote: >> On Sun, Jun 17, 2012 at 2:33 AM, Satvir >> Toor  wrote: > Make sure you set up the Form enctype correctly. ( ... enctype="multipart/form-data">) I did it. Problem solved. Thanx Sir. >> MEDIA_ROOT = >> '/usr/local/lib/python2.7/dist-packag

Re: upload image

2012-06-17 Thread Satvir Toor
On Mon, Jun 18, 2012 at 6:29 AM, Satvir Toor wrote: > On Sun, Jun 17, 2012 at 12:36 PM, Kurtis Mullins > wrote: >>> On Sun, Jun 17, 2012 at 2:33 AM, Satvir >>> Toor  wrote: > >> Make sure you set up the Form enctype correctly. (> ... enctype="multipart/form-data">) > I did it. Problem solved. Tha