Using RequireJS with Django

2012-02-27 Thread jpk
Hi django-users, I'm working on a django project with a quickly growing javascript front-end using backbone. The backbone application has grown to the point where it needs to be split into modules across multiple files. I'm looking into RequireJS to do that. I've done some research on how to

Re: Getting Started with Mac OS X

2012-02-27 Thread Babatunde Akinyanmi
I've never used mac OS but try: python django-admin.py startproject mysite On 2/28/12, JChlipala wrote: > Hello, > > I am a Django beginner, and am trying to get Django set up in Mac OS > X. I am going through the tutorial, but getting stuck very early > (essentially

Getting Started with Mac OS X

2012-02-27 Thread JChlipala
Hello, I am a Django beginner, and am trying to get Django set up in Mac OS X. I am going through the tutorial, but getting stuck very early (essentially at the beginning). I have installed Python and Django. The next instruction is to enter the command "django-admin.py startproject mysite".

Re: Going crazy with WSGI

2012-02-27 Thread Javier Guerra Giraldez
On Mon, Feb 27, 2012 at 11:19 PM, atlastorm wrote: > WSGI is a script that connects Django to > Apache. not really WSGI is just a standard, a document that says "the web server will call the app as a function with such and such parameters, the app will return such and such

Re: Is GeoDjango Too Much For This?

2012-02-27 Thread DF
Ethan: What a generous answer. Thank you so much. Here are my responses with a few other questions: > What is your operating system?  On Ubuntu I've found all the installation > to be very easy. I'm on a Mac. The Django GeoDjango installation instructions are somewhat obtuse and there aren't

Re: Django ExtraField

2012-02-27 Thread Babatunde Akinyanmi
Hi coded, You can't get rid of that field and expect the comment framework to work right. Other posters have suggested that you use a hiddenField widget on your form class (you are using a custom comment model right?). If that's not going smoothly, then you should do it with CSS ie add a class

"model_name" object has no attribute '_adding'

2012-02-27 Thread dizzydoc
Hi django users, I have just migrated my projected from django 1.2.7 to django 1.3. I am receiving the following error while saving an object from admin. "model_name" object has no attribute '_adding' I am getting this error in clean method of some of my models where i use it the following

Re: Going crazy with WSGI

2012-02-27 Thread atlastorm
Thanks Daniel, for that explanation. Let me get this straight - WSGI is a script that connects Django to Apache. My WSGIScriptAlias is pointed like this: WSGIScriptAlias / htdocs "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/" Is this correct? Is this the folder that should house

Login Issues

2012-02-27 Thread hack
I'm attempting to follow the instructions on the Django website and use the registration/login.html. I created the file in myapp/ registration/login.html. I've added the following to my urls.py file: url(r'^login/$', 'django.contrib.auth.views.login'), When I attempt to access /myapp/login I

Re: internationalization makemessage don't work

2012-02-27 Thread Diego Schulz
On Mon, Feb 27, 2012 at 7:19 PM, Denis Darii wrote: > Of course, from the django > documentation(https://docs.djangoproject.com/en/dev/topics/i18n/translation/#message-files): >> >> The script should be run from one of two places: >> >> The root directory of your Django

Re: How to generate common blocks?

2012-02-27 Thread Brett Epps
Consider writing custom template tags for the common parts (assuming they're dynamic). https://docs.djangoproject.com/en/1.3/howto/custom-template-tags/ Brett On 2/27/12 2:25 PM, "Paul" wrote: >I have a question regarding the use of the template mechanism. > >Say i'm using

Re: What is the simplest way to install MySQL-python on Lion 10.7 with Xcode 4.3?

2012-02-27 Thread Brett Epps
I think your problem might be solved in this SO post: http://stackoverflow.com/questions/6383310/python-mysqldb-library-not-loade d-libmysqlclient-18-dylib By the way, I'd highly recommend using Homebrew instead of MacPorts and pip/virtualenv instead of sudo easy_install. Brett On 2/27/12

Re: Calling "manage.py shell" from the Python Shell in Tutorial Part 1

2012-02-27 Thread Sami Balbaky
Thanks everyone. Your inputs were a tremendous help. I'm slowly, but surely, getting the hang of Django. Best, S On Wed, Feb 22, 2012 at 9:19 AM, Bill Freeman wrote: > 1. There is more information in that traceback (that you didn't > include) that could help > you find

Re: internationalization makemessage don't work

2012-02-27 Thread Denis Darii
Of course, from the django documentation( https://docs.djangoproject.com/en/dev/topics/i18n/translation/#message-files ): > The script should be run from one of two places: > >- The root directory of your Django project. >- The root directory of your Django app. > > The script runs over

Re: Django ExtraField

2012-02-27 Thread coded kid
So you mean I will override the template? Since I will be making the correction is the models. On Feb 25, 3:12 pm, Carlos Leite wrote: > On Fri, Feb 24, 2012 at 2:14 PM, coded kid wrote: > > Sorry, How will I set that? is it from the template? > > no,

Re: internationalization makemessage don't work

2012-02-27 Thread nicolas HERSOG
I've already tried this, django created LC_MESSAGE folder in locale, but this folder is empty (no django.po file is generated :/) I'm guessing if the problem is not the way i tagged the things to translate ... I added to all the html files i wanted to translate the tag {% load i18n %} and all the

Re: internationalization makemessage don't work

2012-02-27 Thread Denis Darii
Hi Nicolas. Try to run makemessages script from the root directory of your Django app, so: $ cd /your/app/path/ $ mkdir locale $ django-admin.py makemessages -l en On Mon, Feb 27, 2012 at 10:54 PM, nicolas HERSOG wrote: > Yes, I have my app in INSTALLED_APPS and I also

Re: internationalization makemessage don't work

2012-02-27 Thread nicolas HERSOG
Yes, I have my app in INSTALLED_APPS and I also have added this key in my settings : USE_I18N = True USE_L10N = True MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware',

Re: internationalization makemessage don't work

2012-02-27 Thread Ian Clelland
On Mon, Feb 27, 2012 at 1:36 PM, nicolas HERSOG wrote: > Fun fact, I tried the command manage.py compilemessages, it takes > loong time to finish and parse all of my workspace in order to create > translation file xD. > All my home except my project :| ... > > Does your

Re: internationalization makemessage don't work

2012-02-27 Thread nicolas HERSOG
Hi Diego, and thanks for your help :) I've already created a /conf/locale folder at my root project. Whenever i typed python manage.py makemessage -l django add to /conf/locale a new folder /LC_MESSAGE which contains a django.po file. When i vim this file I just notice translation key about

Re: internationalization makemessage don't work

2012-02-27 Thread Diego Schulz
On Mon, Feb 27, 2012 at 5:45 AM, nicolas HERSOG wrote: > Hi everyone, > Very thanks for yours answers! > > I added to the top of all my html files {% load i18n %} and typed in my root > directory : > > django-admin.py makemessages -l en > > Or : > > python manage.py

How to generate common blocks?

2012-02-27 Thread Paul
I have a question regarding the use of the template mechanism. Say i'm using a common website layout with header, footer and in the center three columns. Only the center is specific to the request (so the specific view function will generate the center block), i'm not sure however what the best

What is the simplest way to install MySQL-python on Lion 10.7 with Xcode 4.3?

2012-02-27 Thread Bryan
I am setting up Python and Django on os X 10.7 from a virgin install and Xcode 4.3. I tried using the default install of Python: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ $ sudo easy_install MySQL-python Searching for MySQL-python Reading

formwizard not ready for parametrized urls

2012-02-27 Thread danoro
Please pay attention to this piece of code: formwizard/views.py class NamedUrlWizardView(WizardView): def get(self, *args, **kwargs): """ This renders the form or, if needed, does the http redirects. """ step_url = kwargs.get('step', None) if step_url

Re: Is GeoDjango Too Much For This?

2012-02-27 Thread Ethan Jucovy
On Sat, Feb 25, 2012 at 7:50 PM, DF wrote: > GeoDjango though, to be honest, sounds frightening and extremely > advanced. I've been reviewing the installation requirements and, at > least according to how these were written, is intense and ripe for > many errors. What

Re: Going crazy with WSGI

2012-02-27 Thread Daniel Roseman
tOn Monday, 27 February 2012 14:40:37 UTC, atlastorm wrote: > > I am a newbie to Django and web development in general, and I've > completed the django tutorial and am working my way through the > practical django projects book. I have a simple app that I wanted to > try out: basically a form

Re: question about "\d" in url pattern

2012-02-27 Thread Justin Myers
On Feb 27, 1:44 am, Masklinn wrote: > On 27 févr. 2012, at 07:23, Zheng Li wrote: > > i thought "\d+" in url promises i can get an int point in cheer_confirm, > > and am i wrong? > > \d+ ensures you will only get naturals, but django will not perform

Re: Django Contract - London - Immediate Start - £250pd - £350pd

2012-02-27 Thread Andre Terra
Meanwhile, as you wait for answers, do check http://djangopeople.me/ Perhaps you could contact some locals directly and even schedule a couple of interviews. Cheers, AT On Mon, Feb 27, 2012 at 12:22 PM, Tim Abbott wrote: > Good Afternoon all, > > Firstly, sorry to use

Django Contract - London - Immediate Start - £250pd - £350pd

2012-02-27 Thread Tim Abbott
Good Afternoon all, Firstly, sorry to use the group like this, however the company I am working with are one of my longest standing clients and I really want to make sure they get the right calibre person. I have been recommended to this user group by a friend of mine who is a Python freelancer.

Way to isolate inherited model classes?

2012-02-27 Thread Gene horodecki
Hi there. I have a multi-table inheritance in my main application like this: MailItem->Parcel->LargeParcel Now I want to have a separate application called 'dispatch' that serves as a staging area as information comes in about the parcels. So I want a single table that has a row that

Going crazy with WSGI

2012-02-27 Thread atlastorm
I am a newbie to Django and web development in general, and I've completed the django tutorial and am working my way through the practical django projects book. I have a simple app that I wanted to try out: basically a form in HTML that takes inputs, reads a database, calculates and displays an

Re: Audio Captcha for django

2012-02-27 Thread Anoop Thomas Mathew
Why can't you use this: http://www.google.com/recaptcha Thanks, Anoop atm ___ Life is short, Live it hard. On 27 February 2012 19:59, Karthik Abinav wrote: > Hi, > > Does django have an implementation of audio captch for registration? If > so please link me to

Audio Captcha for django

2012-02-27 Thread Karthik Abinav
Hi, Does django have an implementation of audio captch for registration? If so please link me to the docs. Thanks, Karthik Abinav -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: internationalization makemessage don't work

2012-02-27 Thread nicolas HERSOG
Hi everyone, Very thanks for yours answers! I added to the top of all my html files {% load i18n %} and typed in my root directory : - - django-admin.py makemessages -l en Or : - python manage.py makemessages -l en I tried both commands, first in my root directory and in my app but

Re: Using query set in views.py

2012-02-27 Thread Stanwin Siow
i see. Thanks guys. I've got it working thanks to your inputs. Really appreciate it. Best Regards, Stanwin Siow On Feb 27, 2012, at 4:36 PM, doniyor wrote: > yes, as Ian said, you need name attr in your input so that you can > navigate to the real string input the user gives.. > > > >

Re: Using query set in views.py

2012-02-27 Thread doniyor
yes, as Ian said, you need name attr in your input so that you can navigate to the real string input the user gives.. On 27 Feb., 08:38, Ian Clelland wrote: > On Sunday, February 26, 2012, Stanwin Siow wrote: > > Ok disregard my previous question. > > > Here's the latest