Re: upload image

2012-06-16 Thread Satvir Toor
On Sun, Jun 17, 2012 at 5:31 AM, Mike Dewhirst wrote: > On 17/06/2012 5:16am, Satvir Toor wrote: > 1. Include the image in your other form href="{{MEDIA_URL}}somedir/image.png"> I followed the link which you suggest me. I made changes in settings.py file of the project as MEDIA_ROOT = '/usr/lo

Re: Django on Mac OS X

2012-06-16 Thread Thomas Lockhart
On 6/16/12 9:41 PM, Moshe Voloshin wrote: I tried that too, but it didn't change anythin Tried what too? I've had good luck with python, virtualenv, and postgresql from MacPorts and then using virtualenv and pip to get psycopg2, django, etc. The library path from your error indicates that you

Re: Django Tutorial part 2... Admin Site won't work...

2012-06-16 Thread Xavier Ordoquy
Hi, The site entry is usually created when the syncdb is run. What Django version are you using ? If you're using the development version, please remove it and install a stable version. Regards, Xavier Ordoquy, Linovia. Le 16 juin 2012 à 23:16, Laurence MacNeill a écrit : > I'm going through t

Re: Django on Mac OS X

2012-06-16 Thread Moshe Voloshin
I tried that too, but it didn't change anythin On Saturday, June 16, 2012 9:21:38 PM UTC-7, Kurtis wrote: > > Try using the Brew (or ports or whatever it's called on Mac) system to > install Python, PostgreSQL, and the postgresql development libs. > > On Sat, Jun 16, 2012 at 11:22 PM, Moshe Volos

Re: no module named books found

2012-06-16 Thread Sabbineni Navneet
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 post to this group, send email to django-users@googl

Re: Django on Mac OS X

2012-06-16 Thread Kurtis Mullins
Try using the Brew (or ports or whatever it's called on Mac) system to install Python, PostgreSQL, and the postgresql development libs. On Sat, Jun 16, 2012 at 11:22 PM, Moshe Voloshin wrote: > Replying to this old post as I am having this problem of: > Symbol not found: _PQbackendPID > On MAC OS

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

2012-06-16 Thread Kurtis Mullins
> > But you still need manage.py runserver for development because it is > specially designed to prioritise debugging over security and performance. Really? I could see the use for it when running an actual debugger but otherwise, I'm not so sure there's any benefit to using it. Do you have any s

Re: Django on Mac OS X

2012-06-16 Thread Moshe Voloshin
Replying to this old post as I am having this problem of: Symbol not found: _PQbackendPID On MAC OS x 10.6.8 using: python 2.7 and postgres 9.1.4 On virtual env Wanted to ask if you guys seen this issue with python 2.7 and do you know if there is a solution to this. Thanks On Sunday, July 18, 20

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

2012-06-16 Thread Mike Dewhirst
On 17/06/2012 7:30am, Laurence MacNeill wrote: Ok... I'm still learning this stuff here, and I'm confused about one thing... Well, many things, actually, but only one thing that I'll ask about here. During the tutorial I have to type "python manage.py runserver" in order to see my django pa

Re: upload image

2012-06-16 Thread Mike Dewhirst
On 17/06/2012 5:16am, Satvir Toor wrote: I want to upload a image through django forms.I created a class and that file-upload element is visible into the browser.It makes me enable to choose the file. How to handle that image??? Can anybody explain what would be whole procedure to upload a image

manage.py 'need more than 1 value to unpack' in is_library_missing

2012-06-16 Thread Jesse Crawford
Hello, I'm new to Django. I'm setting up an existing app for development on Windows. In the past I've run in to an issue with this application refusing to run under Django 1.4 on Windows (it's primarily developed under 1.3 on Ubuntu), but I hacked a 1.4-type manage.py file (manage14.py) and adde

Re: Where are my posts?

2012-06-16 Thread Russell Keith-Magee
Hi Laurence, Both the Django mailing lists are "first post moderated" lists - if this is your first time posting, we hold your posts to make sure you're not a spam account. Once you're approved, all your posts go straight to the list. You've now been approved, so all your posts should go direct to

Re: Where are my posts?

2012-06-16 Thread Thomas Lockhart
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 questions answered soon. fwiw I've never seen my po

Where are my posts?

2012-06-16 Thread Laurence MacNeill
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 questions answered soon. Thanks, Laurence MacNeill Mableton, Georgia, USA -- You received this

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

2012-06-16 Thread Laurence MacNeill
Ok... I'm still learning this stuff here, and I'm confused about one thing... Well, many things, actually, but only one thing that I'll ask about here. During the tutorial I have to type "python manage.py runserver" in order to see my django pages in a web-browser. Obviously, I don't want to

Django Tutorial part 2... Admin Site won't work...

2012-06-16 Thread Laurence MacNeill
I'm going through the django tutorial and I'm having difficulties at the beginning of the second part... It tells me to create the admin site, and browse to 127.0.0.1:8000/admin to log in to the admin site I just created... But when I do that, I get the python server telling me that the site i

Re: Django and PHP webhosting in Germany

2012-06-16 Thread Daniele Procida
On Sat, Jun 16, 2012, sjtirtha wrote: >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. have worked well for me; they are inexpensive and the support is quick

Re: Django and PHP webhosting in Germany

2012-06-16 Thread Carlos Daniel Ruvalcaba Valenzuela
Not quite sure, the only service I have tried is VPS, they have their own panel to manage your instances, I imagine that for web hosting they also have a sort of panel, with VPS you just setup and then ssh, is more work but even their VQ 7 plan is good enough for a few low traffic sites or one with

Re: Django and PHP webhosting in Germany

2012-06-16 Thread sjtirtha
thank you carlos. For me the options are only virtual server and webhosting, because the other i.e. root server is too expensive. In webhosting, if it supports python. Does it mean I can install django without any problem? On Sat, Jun 16, 2012 at 10:47 PM, Carlos Daniel Ruvalcaba Valenzuela wrote

Re: Django and PHP webhosting in Germany

2012-06-16 Thread Carlos Daniel Ruvalcaba Valenzuela
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/ On Sat, Jun 16, 2012 at 1:24 PM, sjtirtha wrote: > Hi, > > can somebody recommend a good and cheap web hosting for django and > p

Django and PHP webhosting in Germany

2012-06-16 Thread 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 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this grou

Re: no module named books found

2012-06-16 Thread Ernesto Guevara
The problem now is the database configuration: raise ImproperlyConfigured(" settings.DATABASES is improperly configured. " django.core.exceptions.ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details. DATAB

upload image

2012-06-16 Thread Satvir Toor
I want to upload a image through django forms.I created a class and that file-upload element is visible into the browser.It makes me enable to choose the file. How to handle that image??? Can anybody explain what would be whole procedure to upload a image and the display that image into my Another

Re: Taggit fragmentation (open letter)

2012-06-16 Thread Marcin Tustin
Alex, More power to you for sticking your head above the parapet in relation to this. Marcin On Saturday, June 16, 2012, Alex Gaynor wrote: > > > On Mon, May 28, 2012 at 12:39 PM, Simon Bächler > > > wrote: > >> I was just checking on github if there was a new version of django-taggit >> and

Re: no module named books found

2012-06-16 Thread Satvir Toor
On Sat, Jun 16, 2012 at 4:58 PM, Sabbineni Navneet wrote: > DATABASES = { >     'default': { >         'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', > 'mysql', 'sqlite3' or 'oracle'. >         'NAME': 'xam',                      # Or path to database file if > using sqlite3.

Re: Taggit fragmentation (open letter)

2012-06-16 Thread Alex Gaynor
On Mon, May 28, 2012 at 12:39 PM, Simon Bächler wrote: > I was just checking on github if there was a new version of django-taggit > and was quite shocked what I saw. The original repository had not been > updated for over a year. Yet there are 41 issues and 12 pull requests. > There are 114 fork

Re: no module named books found

2012-06-16 Thread Sabbineni Navneet
any idea whats wrong... On Sat, Jun 16, 2012 at 10:39 PM, Sabbineni Navneet < sabbsnavneet1...@gmail.com> wrote: > when i try only books. > the error shown is > > runnerw.exe C:\Python27\python.exe "C:\Program Files > (x86)\JetBrains\PyCharm 2.5.1\helpers\pycharm\django_manage.py" syncdb > C:/Use

Re: no module named books found

2012-06-16 Thread Sabbineni Navneet
when i try only books. the error shown is runnerw.exe C:\Python27\python.exe "C:\Program Files (x86)\JetBrains\PyCharm 2.5.1\helpers\pycharm\django_manage.py" syncdb C:/Users/navneet/PycharmProjects/djangotest2 Traceback (most recent call last): File "C:\Program Files (x86)\JetBrains\PyCharm 2.5

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

2012-06-16 Thread Timothy Makobu
+1 django-hosts worked very well for me. On Sat, Jun 16, 2012 at 5:04 PM, 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, Alireza Savand wrote: >> >> Have extremely control on URLs wit

django models noob help

2012-06-16 Thread ledzgio
Hi all, I am a noob and I am trying to set up a django project. I need some help to model everything. Essentially I am building up a soccer player's catalog. What I have is a generic player that own informations like name, surname, nationality, age and so on. Furthermore every player has also i

Re: no module named books found

2012-06-16 Thread Ernesto Guevara
Check the structure of project: Here I use Eclipse, and my project have this structure: myproject>myproject>app In your case: djangotest2>djangotest2>books Or: djangotest2>books And in installed_apps: INSTALLED_APPS = ( 'books', ) 2012/6/16 Sabbineni Navneet > project name is django

Re: Please Assist Learning Programming and Python with Django Framework and Stuck

2012-06-16 Thread yak-man
On Saturday, June 16, 2012 5:10:34 AM UTC-5, cmac0tt wrote: > > So python is what I chose to learn, using the Django framework. > > I had this project working, then it just stopped out of nowere when I was > about to show one of my two bosses. Anyone able to give any insight? I put > everything

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

2012-06-16 Thread Rafał Stożek
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, Alireza Savand wrote: > > Have extremely control on URLs with django is easy as possible. > > But why there is nothing about handling subdomains url configration, all i

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

2012-06-16 Thread Alireza Savand
i don't think we can say that, cause instead of handling url in urls.conf, we could done that in .htaccess or as you said in WebServer configuration. On Sat, Jun 16, 2012 at 5:21 PM, Daniel Roseman wrote: > On Saturday, 16 June 2012 13:48:

Re: Please Assist Learning Programming and Python with Django Framework and Stuck

2012-06-16 Thread Cal Leeming [Simplicity Media Ltd]
Just to echo on advice already given, your indenting is a real mess here. You can't get away with bad indenting like you can in other languages, because Python relies on indenting for the flow of code. (i.e. you use intends rather than brackets). You are also using mixed indents (some are 4 space

no module named books found

2012-06-16 Thread Sabbineni Navneet
project name is djangotest2 and app name is books settings.py INSTALLED_APPS = ( 'djangotest2.books', ) DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. 'NAME': 'xam', #

Re: Please Assist Learning Programming and Python with Django Framework and Stuck

2012-06-16 Thread cmac0ttlazytologin
P.S Python 2.7 with Django 1.4 on Ubuntu 12.04lts On Saturday, June 16, 2012 6:10:34 AM UTC-4, cmac0tt wrote: > > So python is what I chose to learn, using the Django framework. > > I had this project working, then it just stopped out of nowere when I was > about to show one of my two bosses. Any

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

2012-06-16 Thread Daniel Roseman
On Saturday, 16 June 2012 13:48:16 UTC+1, Alireza Savand wrote: > > Have extremely control on URLs with django is easy as possible. > > But why there is nothing about handling subdomains url configration, all i > found it was > making

Why doesn't Django support subdomain url conf?

2012-06-16 Thread Alireza Savand
Have extremely control on URLs with django is easy as possible. But why there is nothing about handling subdomains url configration, all i found it was makinga middleware

Re: Please Assist Learning Programming and Python with Django Framework and Stuck

2012-06-16 Thread kenneth gonsalves
On Sat, 2012-06-16 at 03:26 -0700, cmac0tt wrote: > I was told by someone I had to use print() then write() then save.page > to > pass the data permanently as opposed to just printing the data and > losing > it. It didnt logically make sense to me, which is why I kind was > hoping > people could

Re: Please Assist Learning Programming and Python with Django Framework and Stuck

2012-06-16 Thread kenneth gonsalves
On Sat, 2012-06-16 at 15:52 +0530, kenneth gonsalves wrote: > > > > what does write() do? > > btw, line 56 in models needs to be indented > lines 54 and 55 have a double indent. Why? > lines 21, 22 and 32 will never be executed. oh, and your indents in 17 and 18 are not consistent with 21-22.

Re: Please Assist Learning Programming and Python with Django Framework and Stuck

2012-06-16 Thread cmac0tt
I was told by someone I had to use print() then write() then save.page to pass the data permanently as opposed to just printing the data and losing it. It didnt logically make sense to me, which is why I kind was hoping people could explain their answers a little if possible rather than just sa

Re: Please Assist Learning Programming and Python with Django Framework and Stuck

2012-06-16 Thread cmac0tt
P.S Python 2.7 with Django 1.4 ON Ubuntu 12.04lts On Saturday, June 16, 2012 6:10:34 AM UTC-4, cmac0tt wrote: > > So python is what I chose to learn, using the Django framework. > > I had this project working, then it just stopped out of nowere when I was > about to show one of my two bosses. Any

Re: Please Assist Learning Programming and Python with Django Framework and Stuck

2012-06-16 Thread kenneth gonsalves
On Sat, 2012-06-16 at 03:10 -0700, cmac0tt wrote: > here is the dpaste: > > http://dpaste.com/760213/ > > what does write() do? btw, line 56 in models needs to be indented lines 54 and 55 have a double indent. Why? lines 21, 22 and 32 will never be executed. -- regards Kenneth Gonsalves --

Please Assist Learning Programming and Python with Django Framework and Stuck

2012-06-16 Thread cmac0tt
So python is what I chose to learn, using the Django framework. I had this project working, then it just stopped out of nowere when I was about to show one of my two bosses. Anyone able to give any insight? I put everything in a DPASTE. First it kept telling me that line 45 (which didnt exist w