Posting, numbering and updating docs to db

2013-05-21 Thread alexandre...@gmail.com
Hi I'm trying to post some docs to database, and have some issues associated that I'm not sure howto implement in django. class DocNumber(models.Model): tipo=models.CharField(max_length=2) Year=models.IntegerField() Number=modelsIntegerField() class Doc(models.Model): Tipo = models

Re: Django in the Mac App Store with BitNami

2013-05-21 Thread victoria
Hi, On Sat, May 18, 2013 at 7:13 PM, Artem Zinoviev wrote: > > sorry, but why you use apache? We include Apache and mod_wsgi because it is what most of users use in production. Of course you can use the django development server. However when an user tries to configure his application with Apach

Custom RadioSelect() Label from Model Data

2013-05-21 Thread Christian Schmitt
Hello, is there a way to get a Custom Label for a RadioSelect() widget? I have a Model and wanted to get a label like: ' {{ customer.name }} {{ customer.address.city }} {{ customer.address.zip }} ' Is there a way to get certain output? I heard about the RadioSelect Renderer but i can only acce

Re: [Bulk] Re: Template Inheritance doubt

2013-05-21 Thread Parin Porecha
Yes, this approach is also good. Besides, I have no problem in letting the html tags remain in header and footer. Thanks :) On Tue, May 21, 2013 at 3:58 AM, Sam Solomon wrote: > If you are mainly using this for splitting stuff into multiple files, here > is what we do to accomplish the same thi

Data Access Across Subdomains?

2013-05-21 Thread support
Hello, I am fairly new to both django, so please excuse this question if there is a doc I missed somewhere that answers it... Anyhow, I'm planning on moving a large drupal site into django. Currently the site - yinyanghouse.com - has more or less static content, dynamic community submitted co

Understanding Django transactions

2013-05-21 Thread Michael
I've been reading up on how transactions work in Django 1.5 and how they will work in 1.6. I think I have a grasp of things, but I wanted to reach out on here to just check that my understanding of things is correct, and ask a question or two. *Django 1.5:* - The database-level auto-comm

Deploying CSS/JS with pip

2013-05-21 Thread Thomas Güttler
Hi, I like one part of fanstatic[1]: You can create dependencies to JS modules. The JS files are available on pypi and this way installing them is very easy. example: You can have a requirement on "js.jquery_datatables" in you requirements.txt file: https://pypi.python.org/pypi/js.jquery_datat

Re: new to Django and building web applications. Advice with postgresql

2013-05-21 Thread Tom Evans
On Sun, May 19, 2013 at 11:51 PM, Scott Anderson wrote: > On Sunday, May 19, 2013 11:18:07 AM UTC-4, WongoBongo wrote: >> >> You don't have to become an expert with postgres to use Django. You can do >> most of the db development using SQLite and hold off on postgres until you >> are ready to depl

Django Celery w/ Amazon RDS and Memcached

2013-05-21 Thread Joey Espinosa
Hey guys, I'm having an issue with running Celery on an EC2 instance, using the database transport (django://) and memcached as the cache backend. I have Celery running via Supervisor, and I can tail the log and see that it's successfully getting a specific task (for reloading the database). Howev

Re: Django Celery w/ Amazon RDS and Memcached

2013-05-21 Thread Joey Espinosa
Nevermind, everyone. Turned out to be simply my fault (had a shell connection to the database open). *facepalm* -- Joey "JoeLinux" Espinosa* * On Tue, May 21, 2013 at 8:29 AM, Joey Espinosa wrote

access request variable from middlewares into my main project urls

2013-05-21 Thread Nikhil Verma
Hello Guys I want to make the urls dynamic and change according to roles in the project for every app. Example if there is role x so it should change like x/manage/view_name() , if the role is admin the urls will become /admin/manage/view_name(). So basically i want to know how can i access req

Re: new to Django and building web applications. Advice with postgresql

2013-05-21 Thread Kevin Daum
On Sunday, May 19, 2013 6:51:09 PM UTC-4, Scott Anderson wrote: > > > I highly recommend *against* waiting for PostgreSQL until deployment. > There are significant differences between SQLite, PostgreSQL, and MySQL. If > you wait until deployment to test on your production database you will find

Re: access request variable from middlewares into my main project urls

2013-05-21 Thread Larry Martell
On Tue, May 21, 2013 at 6:56 AM, Nikhil Verma wrote: > Hello Guys > > > I want to make the urls dynamic and change according to roles in the project > for every app. > Example if there is role x so it should change like x/manage/view_name() , > if the role is admin the urls will become /admin/man

Re: No styling in Chapter 6 in djangobook

2013-05-21 Thread djingo django
Thanks, Mike, for your reply. This turned to be a very common problem... Following your suggestion, I checked the page source (I am running Safari browser on OSX 10.8) and indeed saw the references to the CSS stylesheets: Site administration | Django site admin That, as well as your explanati

Re: Django Celery w/ Amazon RDS and Memcached

2013-05-21 Thread Alex Strickland
On 2013/05/21 02:38 PM, Joey Espinosa wrote: Nevermind, everyone. Turned out to be simply my fault (had a shell connection to the database open). *facepalm* At the risk of embarrassing myself even more than you were, why is that a problem? -- Regards Alex -- You received this message bec

How to select a django-treebeard node in a form

2013-05-21 Thread Cody Scott
I have created my tree structure, now I am trying to create a form that selects a node which I will use to do some operations. When I render the form class SelectNodeForm(MoveNodeForm): class Meta: model = Category with {{form.as_p}} I get the fields Path Depth Numchild V

Re: new to Django and building web applications. Advice with postgresql

2013-05-21 Thread Simon Riggs
On 21 May 2013 13:04, Tom Evans wrote: > On Sun, May 19, 2013 at 11:51 PM, Scott Anderson > wrote: >> On Sunday, May 19, 2013 11:18:07 AM UTC-4, WongoBongo wrote: >>> >>> You don't have to become an expert with postgres to use Django. You can do >>> most of the db development using SQLite and hol

Re: new to Django and building web applications. Advice with postgresql

2013-05-21 Thread Tom Evans
On Tue, May 21, 2013 at 2:16 PM, Simon Riggs wrote: > On 21 May 2013 13:04, Tom Evans wrote: >> On Sun, May 19, 2013 at 11:51 PM, Scott Anderson >> wrote: >>> On Sunday, May 19, 2013 11:18:07 AM UTC-4, WongoBongo wrote: You don't have to become an expert with postgres to use Django. Yo

problem with extending django registration form

2013-05-21 Thread Okorie Emmanuel
hi I have tried extending django registration page with little progress. I can now add new user from the admin but cannot do that on the front end. the problem is that the url does not display the from, but raises exception, "the page cannot be found". Do I need to create a view.py to be able to

Re: new to Django and building web applications. Advice with postgresql

2013-05-21 Thread Simon Riggs
On 21 May 2013 15:00, Tom Evans wrote: > The only queries you need to rewrite on moving django/sqlite -> > django/postgres are raw queries. How many will this beginner have? > Should rewriting raw queries be the thing this beginner worries about? > > 'YMMV' indeed. Switching or changing DB engine

Re: Understanding Django transactions

2013-05-21 Thread John DeRosa
Regardless of whatever comments and corrections may come, I thank you for summarizing what you think the changes will be! I didn't know about these impending changes. John On May 21, 2013, at 4:23 AM, Michael wrote: > > I've been reading up on how transactions work in Django 1.5 and how they

Re: Pickling of dinamically created models.Model subclasses: "attribute lookup failed", django 1.5

2013-05-21 Thread akaariai
I have finally found the time to work on this issue. There is a patch in the ticket (https://code.djangoproject.com/ticket/20289), and I think the patch does solve the regression. I didn't find a simple test case that works in 1.4 but fails in 1.5. If anybody knows how to reproduce the original re

Object Lookup after Save

2013-05-21 Thread Chris Conover
Hello, I'm having an issue looking up objects immediately after they are saved and am wondering if anyone has any advice on how to address the problem. Specifically, I'm saving an object in a view (nothing fancy, a simple save()) and then kicking off a Gearman task to do some operations on that

Re: Django Celery w/ Amazon RDS and Memcached

2013-05-21 Thread Joey Espinosa
Sorry, just saw this. Presumably I had some sort of lock on the database which was preventing the async task from reloading a database dump. As soon as I exited the database shell, the task finished successfully. -- Joey "JoeLinux" Espinosa* *

timezone.activate GMT+offset inverts

2013-05-21 Thread Avraham Serour
Hi, I have created a middleware that calls timezone.activate like this: from pytz import timezone as tz timezone.activate(tz('Etc/GMT+3')) I when printing the time 20:20 UTC+0 it shows as 17:20 I even tried to use {% timezone "Etc/GMT+3" %} {{ value }} {% endtimezone %} but it still shows

Re: Understanding Django transactions

2013-05-21 Thread Aymeric Augustin
Hi Michael, > > *Django 1.5:* > >- The database-level auto-commit is turned OFF. > > Yes. > >- SQL standards dictate that every query opens a transaction if one >does not already exist. This happens regardless of the database's >auto-commit setting. > > Yes, this is required

Re: Object Lookup after Save

2013-05-21 Thread Tom Evans
On Tue, May 21, 2013 at 4:23 PM, Chris Conover wrote: > Hello, > > I'm having an issue looking up objects immediately after they are saved and > am wondering if anyone has any advice on how to address the problem. > Specifically, I'm saving an object in a view (nothing fancy, a simple > save()) an

How to locate django extension templates

2013-05-21 Thread Cody Scott
I am trying to use django-treebeard in the admin. https://tabo.pe/projects/django-treebeard/docs/tip/intro.html#configuration It says Note If you are going to use the Treeadmin class, you need to add

define BASE_DIR?

2013-05-21 Thread Christopher Spears
I am working my way through the Django tutorial, and I have reached the part where I am supposed to customize the look and feel of the admin. I am supposed to do that using the mysite\settings.py file (working on a Windows laptop). I have two questions. At first, I just typed the following in

Re: define BASE_DIR?

2013-05-21 Thread Charly Román
2013/5/21 Christopher Spears : > I am working my way through the Django tutorial, and I have reached the part > where I am supposed to customize the look and feel of the admin. I am > supposed to do that using the mysite\settings.py file (working on a Windows > laptop). I have two questions. > >

theme generator

2013-05-21 Thread Kakar Arunachal Service
Hi! Is there any kind of theme generator or css generator for django? -- 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.

Re: Object Lookup after Save

2013-05-21 Thread Chris Conover
Calling transaction.commit() after object.save results in a TransactionManagementError. I mentioned at the end that I am using MySQL (5.5.27). The issue is not that the Gearman workers are having trouble saving their transactions, it's that they are having trouble looking up the incoming object

Re: theme generator

2013-05-21 Thread Aaron C. de Bruyn
Not specifically, but Bootstrap is nice: http://twitter.github.io/bootstrap/ On Tue, May 21, 2013 at 2:19 PM, Kakar Arunachal Service < kakararunachalserv...@gmail.com> wrote: > Hi! > Is there any kind of theme generator or css generator for django? > > -- > You received this message because y

Re: new to Django and building web applications. Advice with postgresql

2013-05-21 Thread Scott Anderson
On May 21, 2013, at 8:04 AM, Tom Evans wrote: > > The purpose of using an ORM is to make your application database > agnostic. You should not find that changing DB engine is overly > taxing. Theoretically, yes. The difference between theory and practice is very small in theory, and not so much