How to display that forms?

2011-02-25 Thread galago
I'm thinking how to display forms in that configuration: I have 3 simple models: class Province(models.Model): name = models.CharField(max_length=30) slug = models.SlugField(max_length=30, unique=True) class UserProvince(models.Model): user = models.ForeignKey(User) province = mode

Using user data from another project

2011-02-25 Thread Benedict Verheyen
Hi, i have 2 sites that use the standard Django authentication system. I use the first site, say site A, as the site to manage logon's. My point is to achieve that when a user is logged in on site A, he/she is automatically logged in on site B. Now, when a user visits site B, he/she gets redirec

combobox

2011-02-25 Thread Szabo, Patrick (LNG-VIE)
Hi, I was trying to get "An AJAX Select Widget for Django" (http://code.djangoproject.com/wiki/AJAXWidgetComboBox ) running but i found out that it doesn't work with newer versions of django (correct me if I'm wrong.) Is there an alternative or a way to make it work with the newest version

Re: mod_wsgi or mod_fcgi

2011-02-25 Thread km
yes nginx+uwsgi seems to be the best combination for django. KM On Fri, Feb 25, 2011 at 5:36 AM, Eugene MechanisM < eugene.mechan...@gmail.com> wrote: > > I used this for several months, and encountered all kinds of horrible > memory > > allocation problems, crashes, etc etc. > it's can be posiibl

Re: Using user data from another project

2011-02-25 Thread bruno desthuilliers
On 25 fév, 11:28, Benedict Verheyen wrote: > Hi, > > i have 2 sites that use the standard Django authentication system. > I use the first site, say site A, as the site to manage logon's. > My point is to achieve that when a user is logged in on site A, he/she is > automatically logged in on site

FormWizard and FormPreview

2011-02-25 Thread Merijn
Hey Guys, I've got a problem with FormWizard and FormPreview and I need some the direction. First let me give you a quick view of the situation. What i'm looking for is a FormWizard with multiple steps and on the last step a FormPreview with all the data from the FromWizard. I think this a very c

Pinax static files in windows7 virtualenv

2011-02-25 Thread Kopch
Hi all! I'm noob in django. I've installed Pinax project in windows virtualenv, after i've made static files collect with build_media. Everything were collected in the site_media\static. But pinax project doesn't see them anyway. ADMIN_MEDIA_PREFIX is '/site_media/static/ admin' and all files are t

Re: How to merge querysets and sort it?

2011-02-25 Thread Thomas Rega
could you paste the definition of the models? I think there is the need of a relationship between 'Data_Siswa' and 'Users'. regards, TR 2011/2/22 : > I'm not so sure if I'm answering your question but there's a way you can > chain querysets. > In your views.py file import Q from django.db.mode

Re: How to merge querysets and sort it?

2011-02-25 Thread Thomas Rega
I think you could solve your "problem" by usage of backward related objects ... (assuming there exists a relation between your (two?) models) http://docs.djangoproject.com/en/dev/topics/db/queries/#backwards-related-objects "If a model has a ForeignKey, instances of the foreign-key model will hav

Re: combobox

2011-02-25 Thread Norberto Leite
"WARNING: This write-up is quite old, and has not been updated to use newforms." N. On Fri, Feb 25, 2011 at 12:18 PM, Szabo, Patrick (LNG-VIE) < patrick.sz...@lexisnexis.at> wrote: > Hi, > > > I was trying to get „An AJAX Select Widget for Django” ( > http://code.djangoproject.com/wiki/AJAXWidg

Re: Using user data from another project

2011-02-25 Thread Benedict Verheyen
On 25/02/2011 12:38, bruno desthuilliers wrote: > Won't work that way. > >> I need to set the user object in site B to get the user info (I display the >> username on every page amongst other data) >> >> Is that even possible? > > Yeps, using multi-db support (to share the user tables) and a cu

Re: Python/Django AMQP?

2011-02-25 Thread CrabbyPete
I just started looking at 0MQ it looks interesting http://zguide.zeromq.org/ On Feb 24, 11:58 am, Brian Bouterse wrote: > +1 for Celery and django-celery.  I use them also. > > On Thu, Feb 24, 2011 at 9:07 AM, Shawn Milochik wrote: > > +1 on Celery and django-celery. I use them both. > > > -- >

Re: Python/Django AMQP?

2011-02-25 Thread Tom Evans
Note that zeromq is not an AMQP compliant messaging queue. Some benefits of directly using AMQP are: You can cater for use cases that carrot doesn't consider - carrot is targeted squarely at handling tasks asynchronously, amqp allows many more use cases, pub/sub, logging event monitoring etc. You

jquery document ready aggregation

2011-02-25 Thread kost BebiX
Hi! I would like to write two simple tags, one would be called {% domready %}, and another one is {% domready_render %}, first will add some js to some buffer and second will just join it alltogather and print it (at base template in some $(document).ready(...)). So my question is: where/how do

Re: jquery document ready aggregation

2011-02-25 Thread kost BebiX
Here's a usage example of that: http://paste.pocoo.org/show/33/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+u

Re: Collaborative text editor with Django

2011-02-25 Thread Pete
I was looking into doing this too! Ethereal is written in java so we either need to port the code or use jython. Hookbox would be a good alternative. If anyone has done 'multiplayer' in Google docs or spreadsheet then they will see the value of this app On Feb 24, 12:35 pm, Piotr Zalewa wrote:

Re: Collaborative text editor with Django

2011-02-25 Thread william ratcliff
If it were me, I would look into using "orbited". We've used it for doing real time plotting of data using django. I'm not sure how it scales though... William On Fri, Feb 25, 2011 at 11:36 AM, Pete wrote: > I was looking into doing this too! Ethereal is written in java so we > either need to

Re: django-pluggables urlconf problem (NoReverseMatch TemplateSyntaxError)

2011-02-25 Thread Nowell Strite
Hey Andra, I will try and take a look at this this weekend or next week. Can you post your urls.py file that corresponds to the page generating the error and for the requested pluggable_url Thanks, Nowell On Feb 24, 10:15 am, Andre Terra wrote: > Hello, folks > > I'm trying to use django-plugga

Model Question

2011-02-25 Thread Noah Nordrum
I'm trying to cram the ORM into an existing schema and have an issue I can't seem to get around. I have a number of tables with a timestamp column, but the column name is inconsistent. I would like to put the timestamp field in an abstract superclass, but I can't seem to figure out how to override

Re: combobox

2011-02-25 Thread Marc DM
On Feb 25, 11:18 am, "Szabo, Patrick \(LNG-VIE\)" wrote: > Hi, > > I was trying to get "An AJAX Select Widget for Django" > (http://code.djangoproject.com/wiki/AJAXWidgetComboBox) running but i > found out that it doesn't work with newer versions of django (correct me > if I'm wrong.) > > Is there

Re: Cross Site Request Forgery (csrf) via POST / JQuery

2011-02-25 Thread Casey S. Greene
I'm not sure if you ever solved this, but the provided code didn't work with jquery 1.5.0 for me (though it does with 1.4.4 and 1.5.1). Maybe this is what you are observing. Hope this helps! Casey On 02/22/2011 08:30 PM, gorans wrote: Hi I'm using Django's CSRFViewMiddleware and am making a

Re: django-pluggables urlconf problem (NoReverseMatch TemplateSyntaxError)

2011-02-25 Thread Andre Terra
Hey Nowell, Sorry for not replying earlier, but I just made it work today. Apparently, I hadn't set up my report views properly, which is the PluggableApp. I didn't think to look inside __init__.py at first, and it turns out I was missing a lot of code in there. Thanks anyway for your prompt resp

sqlite path

2011-02-25 Thread Tim
hi, I'm using Django 1.2.3 and I have a new sqlite (3.7.5) installed in a custom location. There is an old sqlite (3.6.23.1) installed in /usr/local/bin/. How do I tell Django to use the new sqlite? I'm on FreeBSD 8.0. thanks, --Tim Arnold -- You received this message because you are subscribed

Foreignkey troubles : some key look ups give me a ValueError: invalid literal for int() with base 10 error

2011-02-25 Thread hari jayaram
Hi Everyone , I am using the svn version of django to write a django app to hook into a legacy database. I am having some problem with querying by a ForeignKey which is not a Primary key. The sql datatype for the foreign key is VARCHAR(256) , but lookups only succeed with integer fields . The or

Re: sqlite path

2011-02-25 Thread Andre Terra
Try appending the custom location to the beginning of your PYTHONPATH. Sincerely, Andre Terra On Fri, Feb 25, 2011 at 5:28 PM, Tim wrote: > hi, > I'm using Django 1.2.3 and I have a new sqlite (3.7.5) installed in a > custom location. > There is an old sqlite (3.6.23.1) installed in /usr/local/

Django Donations App

2011-02-25 Thread Brad Reardon
Heya django-users, I have been working on a website for a client, and they are in need of an app that is for donations. Being no PayPal IPN-processing expert, I unfortunately do not know how to program an app that would display the names and amounts of the donations received. I have checked out dj

grouping results in change_list admin view

2011-02-25 Thread Dan Christensen
I'd like to group the results shown on the admin change_list view according to one (or more) fields. For example, if my model had author and title fields, I might like a display that looks like: Author1: Book1 Book2 Book3 Author2: Book4 Author3: Book5 Book6 So each author name appear

Re: sqlite path

2011-02-25 Thread Tim
On Feb 25, 4:00 pm, Andre Terra wrote: > On Fri, Feb 25, 2011 at 5:28 PM, Tim wrote: > > hi, > > I'm using Django 1.2.3 and I have a new sqlite (3.7.5) installed in a > > custom location. > > There is an old sqlite (3.6.23.1) installed in /usr/local/bin/. > > > How do I tell Django to use the new

Streaming a csv file

2011-02-25 Thread bfrederi
I've tried a couple of different methods for streaming a large csv file (it takes a few minutes to download entirely). The most recent method I pulled from here: http://stackoverflow.com/questions/2922874/how-to-stream-an-httpresponse-with-django I turned off the GZipMiddleware and added the @cond

Re: Django Donations App

2011-02-25 Thread Shawn Milochik
So, what's your Django question? Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com.

Re: Satchmo Error - Invalid block tag: 'thumbnail', expected 'else' or 'endif'

2011-02-25 Thread Bobby Roberts
anyone have any other ideas? On Feb 22, 5:02 pm, Bobby Roberts wrote: > Hey Daniel - > > we've got {% load thumbnail%} at the top of the template (a standard > satchmo template anyway)... running version 3.2.5 for sorl. > > On Feb 22, 4:25 pm, Daniel Roseman wrote: > > > On Tuesday, February 22,

Number of Django powered sites?

2011-02-25 Thread Adrian Andreias
Hello, I'm looking for some global statistics like: - number of django powered web sites - number of python powered sites - web framework popularity index - number of django developers I know it's the most popular py web framework, I'm just looking for numbers, absolute or relative. I'm already

searching a model in admin with data from a related model

2011-02-25 Thread Bobby Roberts
consider this model (only a portion of it): class Tracker (models.Model): id = models.AutoField (primary_key=True) Barcode = models.IntegerField(unique = True, blank=False) OrderId = models.IntegerField(blank=False) CustomerId = models.CharField (max_length=20, blan

Re: Django Donations App

2011-02-25 Thread Francisco Ceruti
A few months ago I successfully used this app https://github.com/johnboxall/django-paypal I hope this can help you :) On Feb 25, 6:24 pm, Brad Reardon wrote: > Heya django-users, > > I have been working on a website for a client, and they are in need of > an app that is for donations. Being no

Re: Number of Django powered sites?

2011-02-25 Thread Shawn Milochik
This will give you some info on Django in particular, but not comparisons to other frameworks: http://www.djangosites.org/stats/ Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegrou

how to get the time from date-based generic views

2011-02-25 Thread John Yeukhon Wong
Suppose we have a django page using django.views.generic.date_based.object_detail (or even archive_index.. actually doesn't really matter...) In the model class I saved the datetime.datetime.now which suppose to include the day, month, year, and time. But I have no idea how to access the time par

Re: Number of Django powered sites?

2011-02-25 Thread Russell Keith-Magee
On Sat, Feb 26, 2011 at 6:49 AM, Adrian Andreias wrote: > Hello, > > I'm looking for some global statistics like: > - number of django powered web sites > - number of python powered sites > - web framework popularity index > - number of django developers > > I know it's the most popular py web fra

Re: how to get the time from date-based generic views

2011-02-25 Thread Russell Keith-Magee
On Sat, Feb 26, 2011 at 1:09 PM, John Yeukhon Wong wrote: > Suppose we have a django page using > django.views.generic.date_based.object_detail (or even archive_index.. > actually doesn't really matter...) > > In the model class I saved the datetime.datetime.now which suppose to > include the day,

Re: how to get the time from date-based generic views

2011-02-25 Thread John Yeukhon Wong
OHHH this is really impressive. I didn't really think of that. Thanks! Now I have another concept loaded under my belt. Hhaha THank! On Feb 26, 12:18 am, Russell Keith-Magee wrote: > On Sat, Feb 26, 2011 at 1:09 PM, John Yeukhon Wong > > wrote: > > Suppose we have a django page using > > djang