Django & Ember

2013-05-31 Thread JJ Zolper
Hello, So I'm thinking about bundling together Django and Ember. The reason is my front end is going to be lots of data in realtime. Think like overlaying a map with information for an example. Lots of data needs to be handled on the front end. Things need to be extremely dynamic. I love

SQL from Model ?

2013-05-31 Thread Josueh
hi! is possible generate the SQL ("create table/index/") in hardcode? example: class Book(models.Model): title = models.CharField(...) price = models.DecimalField(...) print django_generate_sql_model( Book ) # <--- here ?? anyway? idea? -- You received this message because you

(error) tutorial 2: local admin page not working

2013-05-31 Thread Issam Laradji
After setting up the database using the command: "python manage.py syncdb" I ran "python manage.py runserver" to launch the server But then when I try open the admin page " http://127.0.0.1:8000/admin/; I keep getting this error, Of course, you haven't actually done any

Re: linux or windows

2013-05-31 Thread Jamie Lawrence
I don't count this as 'voluntary', except in the sense that I wasn't forced at the point of a gun, but I can say that it is possible to back a Django site with SQL Server. I do not recommend it, and the details vary based on which particular stack you are running. My recommendations are:

Re: linux or windows

2013-05-31 Thread Nikolas Stevenson-Molnar
Same here. In a perfect world I'd develop on Mac and deploy to Linux, as compiling anything on Windows is a pain and the command prompt is a sorry excuse for a shell (yes, I could use cygwin, and do at times...). Can't use pip to install anything with a compile step. Once you have everything

Re: Workshop: Don't Be Afraid to Commit, Cardiff, UK

2013-05-31 Thread Daniele Procida
On Fri, May 31, 2013, Rahul Ramesh wrote: >I think what you're doing is really great. Do you have recorded videos >available online or do you plan to record your next session? It'd be great >for people like me who can't attend the workshop. I don't think that a recording of

Re: linux or windows

2013-05-31 Thread phil...@bailey.st
forgot to include a vagrant video how-to http://www.youtube.com/watch?v=MiRMvB65U1Y Best, Phillip On 31/05/13 21:53, phil...@bailey.st wrote: > Hi Kakar, > > if you want to use Linux within Window, I strongly advise you to > use Vagrant http://docs-v1.vagrantup.com/v1/docs/getting-started/

Re: linux or windows

2013-05-31 Thread phil...@bailey.st
Hi Kakar, if you want to use Linux within Window, I strongly advise you to use Vagrant http://docs-v1.vagrantup.com/v1/docs/getting-started/ Vagrant will bring up and running a Linux virtual server within minutes. Best, Phillip On 31/05/13 12:11, Kakar Arunachal Service wrote: > Hi! > I know

Re: django , python and ides

2013-05-31 Thread Joey Espinosa
Sure thing :) I'll even give you the stuff that makes my prompt and all that: $HOME/.bashrc (partial): http://collabedit.com/bnxfx /bin/postactivate: http://collabedit.com/6bvfr $HOME/.screenrc-: http://collabedit.com/kuj8d Enjoy! -- Joey "JoeLinux" Espinosa* *

Re: django , python and ides

2013-05-31 Thread Rafael E. Ferrero
I use Aptana... Ninja its good too 2013/5/31 Ezequiel Bertti > +1 pycharm > > > On Fri, May 31, 2013 at 3:39 PM, Chris Lawlor wrote: > >> Joey, >> >> Would you be interested in sharing your virtualenvwrapper setup? I assume >> you're using some custom

Re: django , python and ides

2013-05-31 Thread Ezequiel Bertti
+1 pycharm On Fri, May 31, 2013 at 3:39 PM, Chris Lawlor wrote: > Joey, > > Would you be interested in sharing your virtualenvwrapper setup? I assume > you're using some custom postactivate hooks, looks nice. > > Chris > > > On Friday, 31 May 2013 14:23:23 UTC-4,

Re: request_finished signal not being called with Django 1.5.1 with uwsgi

2013-05-31 Thread jaap
The problem is mainly that the current LTS of Ubuntu ships this ancient version of uwsgi via apt. So it's very easy to end up with a system that's not capable of running Django 1.5 properly (sysadmins seem to prefer apt over pip). Seems sensible to at least specify the minimum uWSGI version in

Re: django , python and ides

2013-05-31 Thread Chris Lawlor
Joey, Would you be interested in sharing your virtualenvwrapper setup? I assume you're using some custom postactivate hooks, looks nice. Chris On Friday, 31 May 2013 14:23:23 UTC-4, JoeLinux wrote: > > I've used both PyCharm and SublimeText extensively for months each at a > time, > and I

Developing Django Apps - best practices?

2013-05-31 Thread Chris Lawlor
All, I'd like to get some feedback from the community on the current best practices for developing standalone Django apps. To clarify, by 'standalone' I mean a codebase that is just the application itself, to be installed into a Django project via setup.py / pip, not working on the app

Re: django , python and ides

2013-05-31 Thread Nikolas Stevenson-Molnar
+1 for PyCharm. I know many here like Sublime Text also (though it's a super text editor, not an IDE). Neither are open source, but both work hard to earn the $$ you spend on them. _Nik On 5/31/2013 7:19 AM, Masklinn wrote: > On 2013-05-31, at 12:54 , tony gair wrote: >> Python and Django are

RE: problem with extending django registration form

2013-05-31 Thread Babatunde Akinyanmi
I'm guessing you want to store more information than default registration allows you to when signing up users. First hijack the URL for displaying the registration form so go to your urls.py file and add this: from path.to.form import CustomForm urlpatterns = patterns('', #hijack

Re: linux or windows

2013-05-31 Thread Jason Arnst-Goodrich
I'd just like to chime in as another "develop on windows, deploy to linux" guys. It's worked fine for me for years. Like people have said, sometimes it's hard to get certain libraries for Windows installed but it's usually not to hard to find a packaged solution if you google (and in simple

Re: linux or windows

2013-05-31 Thread Chris Lawlor
Django itself is completely platform agnostic. Years ago I used to develop on Windows, and typically where I would run into problems was trying to find binaries for third party libraries like PIL and psycopg2. They'd usually be available from somewhere or another, thanks to some kindhearted

Developer for help on a project

2013-05-31 Thread Eric Psalmond
Hi Django-users, I'm looking for an experienced django-dev to help me out on my first django-project. It's a 1.5 w/ custom user model, facebook and google+ integration, and a REST API for passing messages between users on native phone apps. Nothing too crazy. Thus far it is mostly "working"

Re: problem with extending django registration form

2013-05-31 Thread Okorie Emmanuel
On Thursday, May 30, 2013 2:08:46 PM UTC+1, Tundebabzy wrote: > > Hi, > Have you been able to sort out this issue? > Why don't you create your own backend and shoe horn it into > django-registration. You'll need to implement register, activate, > registration_allowed, get_form_class,

Re: request_finished signal not being called with Django 1.5.1 with uwsgi

2013-05-31 Thread Roberto De Ioris
> I've created a ticket https://code.djangoproject.com/ticket/20537 > > Not sure if this can be fixed in Django or a stern warning in the > documentation can suffice. Honestly (i am the main uWSGI author) whoever is using a uWSGI version < 1.2.6 should be worried by dozens more things (no more

Re: request_finished signal not being called with Django 1.5.1 with uwsgi

2013-05-31 Thread jaap
I've created a ticket https://code.djangoproject.com/ticket/20537 Not sure if this can be fixed in Django or a stern warning in the documentation can suffice. Op donderdag 30 mei 2013 17:15:29 UTC+2 schreef ja...@eight.nl het volgende: > > I'm being hit by the same issue. I don't really

Re: Multiple Users Logged into a page at the same time

2013-05-31 Thread C. Kirby
You could also use middleware instead of the view code to do the same thing. That way you wouldn't have to put that code in every view On Friday, May 31, 2013 10:06:00 AM UTC-5, C. Kirby wrote: > > Just going of the top of my head here: > Create a model like: > > class OnPage(Model): > user

Re: Multiple Users Logged into a page at the same time

2013-05-31 Thread C. Kirby
Just going of the top of my head here: Create a model like: class OnPage(Model): user = foreignkey(User) page = TextField() In each of your your views do something like: op, created OnPage.objects.get_or_create(user = request.user) op.page = thispage (The view name, the

Re: linux or windows

2013-05-31 Thread Kakar Arunachal Service
Thanks! Learned many things! On Fri, May 31, 2013 at 6:57 PM, Javier Guerra Giraldez wrote: > On Fri, May 31, 2013 at 7:55 AM, Mike Dewhirst > wrote: > > I don't know of anyone voluntarily using Windows as a Django production > > server platform. > >

Re: django , python and ides

2013-05-31 Thread Masklinn
On 2013-05-31, at 12:54 , tony gair wrote: > Python and Django are not my first languages and currently I am using it > like I would a compiled language inside gedit on debian wheezy. I was > actually quite surprised to find a lot of people using it on windows and > macs when I went to my local

Re: django , python and ides

2013-05-31 Thread BikerJim
I have been using Geany (http://www.geany.org/) * and I like it, but there are many others that are probably better or more suitable. It does have plugins and snippets for Python/django and you can easily create your own too. But over to the gurus for better advice. * this is on Linux, but

Multiple Users Logged into a page at the same time

2013-05-31 Thread Alan
Hi, For a site that I am building, I want multiple users to be able to log in to a page at the same time. Something with the experience being very similar to what we have in Google Docs where I can see the users who are currently logged into and are active on the page. I'd want to be able to

Re: linux or windows

2013-05-31 Thread Javier Guerra Giraldez
On Fri, May 31, 2013 at 7:55 AM, Mike Dewhirst wrote: > I don't know of anyone voluntarily using Windows as a Django production > server platform. not sure if it counts as "voluntarily", but if you _have_ to use MS SQL Server, the DB client options on Linux aren't getting

Re: linux or windows

2013-05-31 Thread Mike Dewhirst
On 31/05/2013 9:11pm, Kakar Arunachal Service wrote: Hi! I know this question is one absurd question, but just out of curiosity, is it important to use linux other than the windows, related to django. Cause i'm in windows, and if it is, then i was thinking to use Ubuntu. Please advise. I

Re: linux or windows

2013-05-31 Thread shmengie
I use Linux for *everything* including running a windows virtual machine to support those who do not. Usually google has an answer for problems that arise. It does make easy to mirror production and development environments. Never tried django on Windows, so I have no opinion re: windows. --

Re: linux or windows

2013-05-31 Thread Kakar Arunachal Service
Ok! Thank u so much! -- 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 to this group, send email to

Re: linux or windows

2013-05-31 Thread Kakar Arunachal Service
ok thanks! On Fri, May 31, 2013 at 5:07 PM, Huy T wrote: > Without regarding any other topics, you will find more information dealing > with *nix and django/python versus a Windows environment. So from an > information perspective, you'd be doing yourself a disservice if

Re: linux or windows

2013-05-31 Thread Huy T
Without regarding any other topics, you will find more information dealing with *nix and django/python versus a Windows environment. So from an information perspective, you'd be doing yourself a disservice if you weren't familiar with a unix/linux flavor (not saying you aren't). Also, security is

Re: linux or windows

2013-05-31 Thread Jonas Geiregat
On 31 May 2013, at 13:26, Kakar Arunachal Service wrote: > thanks!! So, for the production purpose, one must use linux? > No you can also run django and python applications in general on a window system, even in production. But in is most cases it's easier to deploy a django/python

Re: linux or windows

2013-05-31 Thread Kakar Arunachal Service
thanks!! So, for the production purpose, one must use linux? On Fri, May 31, 2013 at 4:49 PM, Avraham Serour wrote: > for development purposes it shouldn't make a difference, on your server I > believe ubuntu would be a better choice than windows > on the other hand if your

Re: linux or windows

2013-05-31 Thread Avraham Serour
for development purposes it shouldn't make a difference, on your server I believe ubuntu would be a better choice than windows on the other hand if your server is ubuntu some might choose to use it for development also, to be as close as possible to the production environment On Fri, May 31,

Re: CBVs and using existing forms for user authentication etc

2013-05-31 Thread Jonas Geiregat
On 31 May 2013, at 12:36, tony gair wrote: > > I'm trying to write my first django app using cbv's and good practice ala 2 > scoops! > > (thanks for all the help so far in this forum btw!) > > I have constructed the app using django braces and CBV's and have noticed > that I can only

Re: linux or windows

2013-05-31 Thread Jonas Geiregat
On 31 May 2013, at 13:11, Kakar Arunachal Service wrote: > Hi! > I know this question is one absurd question, but just out of curiosity, is it > important to use linux other than the windows, related to django. Cause i'm > in windows, and if it is, then i was thinking to use Ubuntu. Please

Re: IDE django with perforce

2013-05-31 Thread Rafael E. Ferrero
I use Aptana on ubuntu, no problem on 3 years for now. 2013/5/30 Ezequiel > On Thursday, May 30, 2013 2:23:11 AM UTC-3, Aswani Kumar wrote: >> >> hi guys, >> >> we are having problem with eclipse 3.8 with pydev perforce plugins on >> ubuntu 13.04 >> >> *problem :* after

linux or windows

2013-05-31 Thread Kakar Arunachal Service
Hi! I know this question is one absurd question, but just out of curiosity, is it important to use linux other than the windows, related to django. Cause i'm in windows, and if it is, then i was thinking to use Ubuntu. Please advise. -- You received this message because you are subscribed to the

django , python and ides

2013-05-31 Thread tony gair
Python and Django are not my first languages and currently I am using it like I would a compiled language inside gedit on debian wheezy. I was actually quite surprised to find a lot of people using it on windows and macs when I went to my local python user group but enough digression!. I was

CBVs and using existing forms for user authentication etc

2013-05-31 Thread tony gair
I'm trying to write my first django app using cbv's and good practice ala 2 scoops! (thanks for all the help so far in this forum btw!) I have constructed the app using django braces and CBV's and have noticed that I can only authenticate into my app through the admin panel. I suspect that

Re: Dump LineString GEOM to Point GEOM (One Model To Another)

2013-05-31 Thread Jani Tiainen
On Wed, 29 May 2013 07:13:04 -0700 (PDT) kpurdon wrote: > Is it possible, outside of using a raw SQL query (PostGIS/PostgreSQL) to do > a GEOM dump. > > I have a table (model) where 1 row is 1 LineString and I need to dump that > table into another table (model) where 1