Re: how do I run a django script from command line or Pycharm?

2013-03-12 Thread Andy McKay
On Tue, Mar 12, 2013 at 5:42 PM, frocco wrote: > I want to run the code below in a file called migration.py django-extensions will do this for you, if you create a run method. http://blog.brendel.com/2012/01/how-to-use-djangextensions-runscript.html -- You received this message because you are

Re: Access Model data from a ModelFormset form

2013-03-12 Thread Jim Kalafut
Thanks Tom & C. Kirby for the suggestions. Pulling data off of .instance seems to work fine and is exactly what I'm looking for. Regards, Jim On Tuesday, March 12, 2013 9:28:23 AM UTC-7, Tom Evans wrote: > > On Tue, Mar 12, 2013 at 2:24 PM, Jim Kalafut > > wrote: > > Hi, > > > > I often w

how do I run a django script from command line or Pycharm?

2013-03-12 Thread frocco
I want to run the code below in a file called migration.py from django.db import connections from django.core.exceptions import ObjectDoesNotExist from django.db.utils import ConnectionDoesNotExist from django.conf import settings import models def setup_cursor(): try: cursor = conne

[ANN] django-domande - an app to represent generic questions on forms

2013-03-12 Thread Bulkan
Hello everyone! I've been working on django-domande [1] an app to help create forms with generic questions think of questions that you would come across when filling out questionnaires or surveys. Though I'm sure there might be different use cases. I'm still working on fleshing out the full docum

Re: Problems install/download Django 1.5

2013-03-12 Thread Shawn Milochik
You can just download the tarball and "pip install filename." -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post

Re: Installing current Django on current Debian with current Python

2013-03-12 Thread Shawn Milochik
The best solution is to use a virtualenv. The decision to purge Python2.6 was a very, very bad one. You should never mess with the version Python that comes with your OS. Lots of software on the system relies on it. You could try to use aptitude to restore it. Hopefully that will work. Otherwise,

Re: Trouble with Custom User Modle and "createsupermethod"

2013-03-12 Thread Gabriel Cavalcante
Hmm, I finally understand that now. Tried with the shell and it gave me the super user needed for the operation. Maybe a 'specific' create super command will be enough for me then. Thank you! Em segunda-feira, 11 de março de 2013 23h50min24s UTC-3, Russell Keith-Magee escreveu: > > > On Tue,

Re: Problems install/download Django 1.5

2013-03-12 Thread breg
On Monday, March 11, 2013 5:22:22 PM UTC+1, DJ-Tom wrote: > > > Fixed - downloaded from Github and installed manually... everything's fine > :-) > Well, I wanted to upgrade via pip: pip install --upgrade django ..and after 2,5 MB I always get a timeout error. pip install does more than just d

Installing current Django on current Debian with current Python

2013-03-12 Thread breg
The latest Django release 1.5 brings a number of welcome improvements, the configurable User model IMO the most noticeable. Now the accouncement on djangoproject.com says: ".. Python 2.7.3 or newer is strongly recommended" As I have no ethical, political or gender-related reservations against py

Re: [ANN] Introducing Brillixy - Django admin skin & customization kit

2013-03-12 Thread Alexey Kinyov
Thank you, Mário! :) Alex /// On Tue, Mar 12, 2013 at 11:23 PM, Alexey Kinyov wrote: > Hi Tomas, > > thank you! :) It's really inspiring :) > > Yes, I looked through all well known admin customization/skin apps - > some of them a really nice. I'm trying to build lightweight and > end-user friendl

Re: [ANN] Introducing Brillixy - Django admin skin & customization kit

2013-03-12 Thread Alexey Kinyov
Hi Tomas, thank you! :) It's really inspiring :) Yes, I looked through all well known admin customization/skin apps - some of them a really nice. I'm trying to build lightweight and end-user friendly interface - so it would be very clear and appealing to 'casual' content managers. In the current

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-12 Thread Nick Apostolakis
On 12/03/2013 01:06 μμ, Jani Tiainen wrote: There is not exactly "RESTful way to authenticate", since after all REST is just an architecture to represent different resources and thus it's totally agnostic what comes to authentications and such. Simplest one (if you're use HTTP(S)) is to use

Re: [ANN] Introducing Brillixy - Django admin skin & customization kit

2013-03-12 Thread Mário Neto
Very good Alexey, Congratulations! =) 2013/3/12 Tomas Ehrlich > Hi Alex, > congratulation to alpha release of your app. > > I was about to suggest you django-bootstrap-admin, django-admin-tools > and django-fluent-dashboard, but since you already know Admin tools, > could you please provide mor

Re: Access Model data from a ModelFormset form

2013-03-12 Thread Tom Evans
On Tue, Mar 12, 2013 at 2:24 PM, Jim Kalafut wrote: > Hi, > > I often want to use a ModelFormset by showing some editable fields, and then > showing some static data that is from the related model instance. For > example, I want to bulk edit a group of Person object phone numbers and > email addre

Re: [ANN] Introducing Brillixy - Django admin skin & customization kit

2013-03-12 Thread Tomas Ehrlich
Hi Alex, congratulation to alpha release of your app. I was about to suggest you django-bootstrap-admin, django-admin-tools and django-fluent-dashboard, but since you already know Admin tools, could you please provide more details about your app? I took a quick look at demo page and read Readme fi

Re: Access Model data from a ModelFormset form

2013-03-12 Thread C. Kirby
I generally do the same thing as you do Jim, it is normally the easiest. There are ways to get the bound value from the form both in the ModelForm Class and in the template (as a template tag). It is easier to do it as a template tag, but you can't use form.as_p, you need to hit each form elemen

Re: error- A server error occurred. Please contact the administrator.

2013-03-12 Thread C. Kirby
My mistake - I figured there was also an error trace from manage.py runserver from the line "Now i m trying to run server but it's showing error" On Tuesday, March 12, 2013 10:26:05 AM UTC-5, Mike Doroshenko II wrote: > > I thought the error was "A server error occurred. Please contact the > a

[ANN] Introducing Brillixy - Django admin skin & customization kit

2013-03-12 Thread Alexey Kinyov
Hello everyone! Today we've released alpha of Brillixy https://github.com/05bit/brillixy. This is a Django admin skin with some extras. Actually it's an alternative to Grapelli, Admin Tools and other apps that changes standard Django admin look and user experience. It's simple and minimal at the

Re: error- A server error occurred. Please contact the administrator.

2013-03-12 Thread Tom Evans
On Tue, Mar 12, 2013 at 3:26 PM, Mike Doroshenko II wrote: > I thought the error was "A server error occurred. Please contact the > administrator." > > I hate when errors say to contact your system administrator, I am my system > administrator and am frustrated by invalid instructions. > > django-

Re: error- A server error occurred. Please contact the administrator.

2013-03-12 Thread Mike Doroshenko II
I thought the error was "A server error occurred. Please contact the administrator." I hate when errors say to contact your system administrator, I am my system administrator and am frustrated by invalid instructions. django-facebook? C. Kirby wrote: Nobody can really help you unless you gi

Access Model data from a ModelFormset form

2013-03-12 Thread Jim Kalafut
Hi, I often want to use a ModelFormset by showing some editable fields, and then showing some static data that is from the related model instance. For example, I want to bulk edit a group of Person object phone numbers and email address, but I'd also like to show (not edit) the person's name by

Re: error- A server error occurred. Please contact the administrator.

2013-03-12 Thread C. Kirby
Nobody can really help you unless you give the error you are getting. On Tuesday, March 12, 2013 1:33:40 AM UTC-5, Avnesh Shakya wrote: > > hi, > I m trying to login on my site through my own site, so i have > installed django-facebook, i have set setting in setting.py. Now i m trying > to

Re: Editing the RSS in the Django community feeds

2013-03-12 Thread Shabda Raaj
Hi Russel, Thanks for your help. Looks like I was using this via feedburner, so I just updated it at the feedburner level. On Tuesday, March 12, 2013 7:57:46 AM UTC+5:30, Russell Keith-Magee wrote: > > Hi Shabda, > > I've got hold of the server logs - the feeds are tied into a bigger > frame

Re: Is there any database ( or other ) magic going on with django properties?

2013-03-12 Thread Bill Freeman
A question is how difficult are the calculations? For example, do they take longer to do than it takes for the extra data to serialized by the database, transmitted over the DB socket by the database, received by the Django DB connection socket, and for Django to deserialize them? If not, then st

Re: Is there any database ( or other ) magic going on with django properties?

2013-03-12 Thread Doug S
Thanks for the quick replies. Straight fields it is, that makes things simple. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegro

Re: [Django] how to debug when I send the data by POST.

2013-03-12 Thread Bill Freeman
These stack traces remind me of what happens when the request is taking a long time and the user decides not to wait, stopping the browser load (in this case maybe control-C-ing out of wget. So it sounds like the request is not completing, but that may be due to your debugging code (are you trying

Asking for opinion about an Agile Web Framework Comparison

2013-03-12 Thread David Díaz Clavijo
To whom it may concern, My name is David Díaz Clavijo. I am a university student at the University of Las Palmas de Gran Canaria (ULPGC), Spain. I am doing a final projectwhich compares agile web frameworks . I am really interested in knowing your opinion a

Re: Is there any database ( or other ) magic going on with django properties?

2013-03-12 Thread Mike Dewhirst
On 12/03/2013 5:09pm, Doug S wrote: I'm considering using django properties on some models that are mostly tabulated numerical data. I'm want to derive some numerical scores from some of the columns of data I'm using as input. If I use properties for these derived scores, what is actually happeni

Sitemaps: Individual index file for each sitemap file

2013-03-12 Thread rosy
I have different sitemaps for different app and i want index files for each and also sitemaps should be compressed. For this am using django app "django-static-sitemaps 1.5.1". The problem is, it generates only one index file for all sitemaps but i want to make individual index files for each si

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-12 Thread Jani Tiainen
10.3.2013 22:54, Pratik Mandrekar kirjoitti: Hello, I'm trying to figure out what would be the best way to integrate django with ember.js/backbone from the user authentication point of view. I'm using Tastypie for creating RESTful resources. I have no problem creating APIs once a user has been

Re: Restful User Authentication for Ember/Backbone client with Tastypie

2013-03-12 Thread Alec Taylor
You'll want to setup an OAuth2 server for this. On 11/03/2013 7:54 AM, "Pratik Mandrekar" wrote: > Hello, > > I'm trying to figure out what would be the best way to integrate django > with ember.js/backbone from the user authentication point of view. I'm > using Tastypie for creating RESTful reso

Re: Is there any database ( or other ) magic going on with django properties?

2013-03-12 Thread Tom Evans
On Tue, Mar 12, 2013 at 6:09 AM, Doug S wrote: > I'm considering using django properties on some models that are mostly > tabulated numerical data. > I'm want to derive some numerical scores from some of the columns of data I'm > using as input. > If I use properties for these derived scores, wh