Re: compiler

2012-11-05 Thread Markus Christen
I have tryed your input, but i have always the same problem... i cant fix it. it doesent work and i dont know why. (i have it in pycharm and there are only these 2 return problems marked.) Am Freitag, 2. November 2012 18:44:46 UTC+1 schrieb ke1g: > Surely the error message included a line num

from django.contrib.admin.models import User

2012-11-05 Thread Bastian
Hi, When I need to use the 'User' class I always import it from django.contrib.auth.models. Now reading some code from other people sometimes I see it imported from django.contrib.admin.models and it seems to have the same consequences. Can anybody tell me the difference between the two ways of

Re: from django.contrib.admin.models import User

2012-11-05 Thread André Dieb
>From what I see on django's source code (dev), there used to be an import of django.contrib.auth.models.User inside django.contrib.admin.models, which means the answer to your question may be: there was no difference. Though, probably best to use contrib.auth on any older version. On Mon, Nov 5

Re: tutorial first step. -ImportError: No module named django.core-

2012-11-05 Thread Elena Williams
Hi Francesco, What happens when you try: $ cd C:\Python27\fra_env\ (or whatever the equivalent of this might be in the shell you are using) $ python Scripts\django-admin.py startproject mysite Regards, Elena :) On Mon, Nov 5, 2012 at 1:19 AM, Francescos wrote: > Hi Elena, > > Thanks for re

How to browse client side and server side files in Django/Python?

2012-11-05 Thread sachitad
I have written a front end Django/Python application. It's like a syncing tool. Users can first browse the source and destination. Source is client's computer and destination is server's computer. The interface is similar to grsync. I need to implement it in the template(front-end application).

How to make new app in django cms

2012-11-05 Thread Mario Ardi
Hy..please help me. How to make new app in django cms and how to make this new app can work in django cms ? I'am new in Django Cms developer. Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https

I'm lookling for an internship django

2012-11-05 Thread Mariusz
I'm a junior programmer Python/Django (also HTML/CSS), and computer science student. I'm looking for non-profit internship to learn more code in Django (HTML/CSS). I have portfoilo html/css - for interested. If you help me in study Django - please send me message. -- You received this message

Re: Location of non-app-specific static files?

2012-11-05 Thread Ryan
That is not a bad idea as everything that is project specific, but not app specific, would live in one place. Thanks, Ryan On Sunday, 4 November 2012 15:14:43 UTC, Xavier Ordoquy wrote: > > Hi, > > One thing I've seen - and adopted - is to have one application that > contains the static files.

I get a problem at [Activate the admin site] of [Writing your first Django app, part 2 ]

2012-11-05 Thread Jun Luo
Hi all, I followed all three steps to activate the admin site. but when I went to /admin, it came as follow: NameError at /admin name 'admin' is not defined Request Method:GETRequest URL:http://127.0.0.1:8000/adminDjango Version: 1.4.2Exception Type:NameErrorException Value: name 'admin' is

Re: Postgres versus mysql? Or, is RDS worth migrating for?

2012-11-05 Thread Hristo Deshev
On 11/05/2012 04:50 AM, martharotter wrote: > I was advised recently to port my startup's Django databases from > postgres to mysql for two reasons: Technical arguments aside (Russ Magee got those covered anyway) I'd advise against that port too. You are doing a startup and you have to focus on gr

Re: Choosing a JS framework to go together with Django

2012-11-05 Thread Joni Bekenstein
By writing a custom serialization for your models you have a good place to handle variations to those models. You don't really have to dump all of your fields, you can even create a custom field specifically for the frontend, but doesn't really exists in your backend model. Besides, If and whe

Re: Location of non-app-specific static files?

2012-11-05 Thread Joni Bekenstein
Check this out: https://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/#staticfiles-dirs I put a static folder in my project root where I put all the project specific (ant not app specific) static files. The folder's path is then added to STATICFILES_DIRS. But note that this static fold

Re: BDD 4 Django

2012-11-05 Thread Daniel França
Hello all. I posted a tutorial about BDD4Django in my blog.(installation, usage, examples) They'are available in 2 languages English: http://codevening.wordpress.com/2012/10/18/bdd4django-tutorial/ http://codevening.wordpress.com/2012/10/31/tutorial-bdd4django-part-2/ Portuguese: http://codevenin

Re: Choosing a JS framework to go together with Django

2012-11-05 Thread Faraz Masood Khan
Have a look at following Unobtrusive Ajax, it is plug out of ASP.NET MVC, simple yet powerful. https://github.com/farazmasoodkhan/DjangoAjax On Tuesday, September 4, 2012 6:39:49 PM UTC+5, dotnetCarpenter wrote: > > Hi all. > > I'm new here and just took over a Django project for the first tim

Re: Postgres versus mysql? Or, is RDS worth migrating for?

2012-11-05 Thread Faraz Masood Khan
I recommend if you do transactions a lot, stick to Postgresql by all means. MySQL isn't transactional database, to test what I mean, create a InnoDB database with a very simple InnoDB table (two columns would be fine), than do 1000 inserts in transactions; note the time and you will find that I

Re: django autocomplete search with jQuery

2012-11-05 Thread carlos
Hi i found in google http://code.google.com/p/django-autocomplete/ and other autocomplete for complete selects https://github.com/digi604/django-smart-selects i thing the first help you cheers On Sun, Nov 4, 2012 at 2:25 PM, Serena wrote: > Hello, how are you? I am new to Django and I have li

Form Inheritance best Practice: Manipulating Fields of the Base Class

2012-11-05 Thread sbrandt
This is a very theoretical question about best practice. I and surely most other users know how to do this in *any* way, but I'm interested in the *best *solution, if it exists. Given that: - I am inheriting a given form I cannot modify directly, let's say the AuthenticationForm - I w

Iframe, IE and request.session data

2012-11-05 Thread James DeMichele
Hello, I’m hoping someone here might be able to help me figure out how to fix this issue I am seeing with IE and an iframe. I’m using Django 1.4 and there is some data that I store on the session like such: request.session[“KEY”] = “VALUE” And then on a different request, I am able to r

Django mod-wsgi multiple instances of One Class object

2012-11-05 Thread drunksaint
I am currently using a DJango - apache installation (on mod_wsgi) to run a website (project) which hosts an intranet cards game, whose rules are complicated enogh that it requires only 1 master list+dict data structure of scores for each user. Individual user's score can be impacted by other

Re: compiler

2012-11-05 Thread Bill Freeman
So the error printout doesn't give the line number of the offending return statement? On Mon, Nov 5, 2012 at 4:26 AM, Markus Christen wrote: > I have tryed your input, but i have always the same problem... i cant fix > it. it doesent work and i dont know why. (i have it in pycharm and there > are

Re: Iframe, IE and request.session data

2012-11-05 Thread Mario Gudelj
It's a security feature in IE as far as I know. Try going to internet options and set the security option to low and it will work. I don't think there's a workaround for that. On Nov 6, 2012 6:59 AM, "James DeMichele" wrote: > Hello, > > > > I’m hoping someone here might be able to help me figure

Re: compiler

2012-11-05 Thread Nikolas Stevenson-Molnar
I know you checked it, but indentation is the only thing I can think of that would cause this. The problem isn't necessarily on the line with the return statement, there may be an earlier line indented incorrectly. Have you tried PyCharm's "Convert Indents" feature? Edit > Convert Indents > To Tabs

Re: compiler

2012-11-05 Thread Nikolas Stevenson-Molnar
I tried copy/pasting the code you linked into PyCharm and it worked fine. Gotta be spacing/indentation somewhere. _Nik On 11/5/2012 1:26 AM, Markus Christen wrote: > I have tryed your input, but i have always the same problem... i cant > fix it. it doesent work and i dont know why. (i have it in

Error setting up Django 1.4 on cPanel Server

2012-11-05 Thread Bestrafung
I am slowly working all of this out and the first 3 or 4 times I tried to setup Django on our cPanel server I kept getting the same 403 Forbidden error. I scrapped everything and started from scratch as I wanted to use Python 2.7 instead of 2.5. Now I am receiving completely different errors I'

Re: from django.contrib.admin.models import User

2012-11-05 Thread Russell Keith-Magee
On Mon, Nov 5, 2012 at 7:50 PM, André Dieb wrote: > From what I see on django's source code (dev), there used to be an import > of django.contrib.auth.models.User inside django.contrib.admin.models, > which means the answer to your question may be: there was no difference. > > Incorrect - there *

Re: compiler

2012-11-05 Thread Kurtis Mullins
You could use Lint to check your code for syntax errors. On Mon, Nov 5, 2012 at 4:18 PM, Nikolas Stevenson-Molnar < nik.mol...@consbio.org> wrote: > I tried copy/pasting the code you linked into PyCharm and it worked fine. > Gotta be spacing/indentation somewhere. > > > _Nik > > On 11/5/2012 1:

initializing virtualenvwrapper on Mac (10.6.8) for Django

2012-11-05 Thread Luisa Beck
I want to use Django and create virtual environments. I don't quite understand the initializing steps documentation on the virtualenvwrapper website. I've installed virtualenvwrapper in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages. I've already installed XCode

Re: initializing virtualenvwrapper on Mac (10.6.8) for Django

2012-11-05 Thread Lachlan Musicman
WORKON_HOME is a shell variable, which is why it's then called/accessed using the $ - $WORKON_HOME Export tells the shell to put it in it's local vars for the session, and to set the var to ~/Export the mkdir -p will create the directory ~/Envs (or whatever you chose to set WORKON_HOME to). It wi

Re: initializing virtualenvwrapper on Mac (10.6.8) for Django

2012-11-05 Thread Lachlan Musicman
I should add that you can see what any shell VAR is set to by using echo $VAR or see what they are all set to by using printenv And that by shell I'm generically referring to all shells: sh, csh, ksh, bash, dash, ash. Cheers L. On Tue, Nov 6, 2012 at 2:10 PM, Lachlan Musicman wrote: > WOR