Re: Creating a "Django Course" and would like some feedback

2013-05-27 Thread Kevin
A small update, I just completed the first chapter and laid out the rest of the chapters which will be made available. You can view the current chapter list on my Uarica project page: http://uarica.com/+12 Here's the link to the chapter list of the "Core Framework" section: http://www.uarica.c

Adding a search to a field.

2013-05-27 Thread Cody Scott
In the admin I have a many-to-many relationship which django supplies a default widget that is really small. I am wondering how to make that bigger or re-sizeable. Is it possible to add a search so that I can type in one of the fields and it will search by that field and bring those options to

Creating a "Django Course" and would like some feedback

2013-05-27 Thread Kevin
Hello everyone! It's been quite sometime since I have been on here, well I came back with some great news! I am currently in the process of building an online Django web course aimed at both new and old Django developers. I will be charging a minimal fee for access to the entire course, but

Django Models SQL generated ?

2013-05-27 Thread Josueh
how can I generate SQL from one specific model ? example: "User.getSchemeSQLGenerated()" -> is equals -> $ python manage.py sql User exists? thank you! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Re: Django tutorial - The "python manage.py startapp polls" command

2013-05-27 Thread Lucas Magnum
Try: python manage.py syncdb if you already put 'django.contrib.admin' in your INSTALLED_APPS (settings.py file). []'s Lucas Magnum. 2013/5/27 Shashwat Srivastava > The "python manage.py startapp polls" command doesnt create a admin.py > file inside polls. I tried creating a admin.py file an

Django tutorial - The "python manage.py startapp polls" command

2013-05-27 Thread Shashwat Srivastava
The "python manage.py startapp polls" command doesnt create a admin.py file inside polls. I tried creating a admin.py file and running it but i get this error when I try to use it. DatabaseError at /admin/polls/poll/1/ no such table: django_admin_log I think the autogenerated code wasnt gener

Re: Deadlock detected

2013-05-27 Thread Pavel Cisar
Hi, I know it's old, but did you find any solution for this? Thanks Pavel Dne čtvrtek, 15. října 2009 17:01:57 UTC+2 Szymon napsal(a): > > Hello, > > Sometimes Django (on higher loads) throws exception: > > TransactionRollbackError: deadlock detected > DETAIL: Process 58214 waits for Share

status of multiple database schemas in Django

2013-05-27 Thread Fabio Caritas Barrionuevo da Luz
Hi, this[1][2] is the best solution to the problem of multiple database schemas? Is there any idea when this feature will be supported by Django's ORM? ps: Sorry for my ugly english. [1] https://code.djangoproject.com/ticket/6148 [2] https://github.com/cbmi/django/commit/4dccd11d927898523e4ed

Re: Can't convert app to south due to django 1.5 custom User model.

2013-05-27 Thread Witold Greń
thanks, it works :) 2013/5/27 Juan Francisco Roco > Sorry, double post I don't see my answer published: > > I found this in stackoverflow: > > > After syncdb: > > $ ./manage.py migrate > $ ./manage.py convert_to_south app > > You will got: > > CommandError: One or more models did not validate:

Re: Can't convert app to south due to django 1.5 custom User model.

2013-05-27 Thread Juan Francisco Roco
Sorry, double post I don't see my answer published: I found this in stackoverflow: After syncdb: $ ./manage.py migrate $ ./manage.py convert_to_south app You will got: CommandError: One or more models did not validate: auth.user: Model has been swapped out for 'app.MyUser' which has not been

Re: Can't convert app to south due to django 1.5 custom User model.

2013-05-27 Thread Juan Francisco Roco
Hello, I had this issue too, I found the solution in a stackoverflow (sorry I dont' have the URL) Basically what you have to do after syncdb is: $ ./manage.py migrate $ ./manage.py convert_to_south app I've got this error: don't worry is part of the procedure :) CommandError: One or more mod

Re: Geodjango on Windows issue

2013-05-27 Thread Angel Vittorio Lopez Robles
Hi Danny, I'm having the same issue, I tried with virtual environments and didn't work, did you find something to fix it? appreciate it. On Tuesday, August 7, 2012 11:23:55 AM UTC-6, Danny Im wrote: > > Hello all, > > I'm hoping to get some assistance on this. > > Issue: > A user can upload a sh

Filter using ObjectId

2013-05-27 Thread Hélio Miranda
I want to make a query, but I need to use the ObjectId, but do not know how to do. The question is, have players and clubs and want to make a query to the players by the id of the club, to know how many players are from that club. What I am trying to do is: *class Club(mongoengine.Document):* *

Django with Moodle

2013-05-27 Thread Sourabh Banerjee
I have moodle version 2.5.But its based on PHP. So how to integrate Django with moodle.Need help. -- 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+un

Re: Multi Client Django System

2013-05-27 Thread Richard Cooke (Gmail)
Thanks Frank! Lots of great bed-time reading!! Rich. On 5/23/2013 2:32 PM, Frank Bieniek wrote: Hi Richard, How do you ( a ) get the system to call your "by user" query? *a)* in your views you query manually - see below - organization_list And ( b ) how do you get the system to send in the

Re: simple TCP/IP connection

2013-05-27 Thread Avraham Serour
if the python code works, in theory it works with django, I suggest you try to run it first and asking questions if it doesn't On Mon, May 27, 2013 at 3:22 PM, wrote: > Can you kindly advice me if this are the right steps to do to create an > application that handle a TCP/IP connection as clien

Getting internal server error 500 instead of 404, may be related with django-compressor?

2013-05-27 Thread Xavi
I'm using Django with Apache web server. If I put DEBUG=True Django serves 404 debug errors without problem. But when I put DEBUG=False Apache is returning a 500 internal server error when it catch a 404 error. This causes Django to not serve my 404 template (/templates/404.html) and visitor se

simple TCP/IP connection

2013-05-27 Thread chiara
Can you kindly advice me if this are the right steps to do to create an application that handle a TCP/IP connection as client to a server and show sended and received data in a webpage? 1) model: define fields to be shown in the web-page 2) view: handle socket connection send data f

steps to connect as client to a tcp/ip server

2013-05-27 Thread chiara
Hi there, I'm a really newbye, I've followed the polls tutorial. I'm looking for a way to dinamically create web-pages that will send and receive message to a TCP/Ip server that use a custom protocol for communication. I've got the python code that handle the communication and I kindly ask you

Re: Problem with django admin

2013-05-27 Thread Anshik Andrey
solved #APPEND_SLASH = False 2013/5/27 Anshik Andrey > Hi. > on the local PC all works > > on the server, when I'm trying xxx.yyy/admin, i've got 404, and there is > no diff DEBUG=True/False > how to detect error? > > my urls.py, and in the settings.py 'django.contrib.admin', ALLOWED_HOSTS = >

Sqlite create ForeignKey problem

2013-05-27 Thread Marco Bonelli
Hi, In my models I want to have an optional field to a foreign key. I tried this: classe = models.ForeignKey('Classe', null=True) But i am getting this error: Table has no column named classe_id i am using sqlite edit -- You received this message because you are subscribed to the Google Grou

Problem with django admin

2013-05-27 Thread Anshik Andrey
Hi. on the local PC all works on the server, when I'm trying xxx.yyy/admin, i've got 404, and there is no diff DEBUG=True/False how to detect error? my urls.py, and in the settings.py 'django.contrib.admin', ALLOWED_HOSTS = ['127.0.0.1', 'xxx.yyy'] from django.contrib.staticfiles.urls import s

Re: Can't convert app to south due to django 1.5 custom User model.

2013-05-27 Thread Joey Espinosa
Do you have "profiles" in INSTALLED_APPS? -- Joey "JoeLinux" Espinosa* * On Mon, May 27, 2013 at 6:47 AM, Witold Greń wrote: > I have the same problem. > How to solve it? > > > > W dniu piątek,

Re: Can't convert app to south due to django 1.5 custom User model.

2013-05-27 Thread Witold Greń
I have the same problem. How to solve it? W dniu piątek, 1 lutego 2013 12:28:01 UTC+1 użytkownik Tejinder Singh napisał: > > I have a custom app in my project named 'profiles' which contains a custom > User model. Here is the declaration of the same: > > class CustomUser(AbstractUser): > i

Many to many relationship MongoDB

2013-05-27 Thread Hélio Miranda
I'm trying to make a many to many relationship in mongodb using tastypie and mongoengine. But I'm having some difficulty. I have players that can have various clubs and clubs that have multiple players. What I'm doing is this: *class Club(mongoengine.Document):* *ClubName = StringField()* *

Re: Passing filter parameters to admin's add view

2013-05-27 Thread Branko Majic
No problem, happens to me sometimes as well :) The only reason I thought there might be another way is that it feels a bit tedious, and I'd expect people need this kind of functionality quite often. I was wondering if there might be some sort of shortcut for it. I'll stick with the template overr

Re: Passing filter parameters to admin's add view

2013-05-27 Thread Derek
This may be a "red herring", but its also worth looking at how middleware handles things: http://www.b-list.org/weblog/2006/jun/13/how-django-processes-request/ On Saturday, 25 May 2013 17:53:00 UTC+2, Branko Majic wrote: > > Hello all, > > I've posted a similar question a couple of months ago,