Re: foreign key with unique versus one-to-one

2013-04-03 Thread Mike Dewhirst
On 4/04/2013 5:15pm, Russell Keith-Magee wrote: On Thu, Apr 4, 2013 at 1:01 PM, Mike Dewhirst mailto:mi...@dewhirst.com.au>> wrote: I have noticed that there appears to be no difference in Postgres between a OneToOneField and a ForeignKey with unique=True Is there any/much differen

Re: foreign key with unique versus one-to-one

2013-04-03 Thread Russell Keith-Magee
On Thu, Apr 4, 2013 at 1:01 PM, Mike Dewhirst wrote: > I have noticed that there appears to be no difference in Postgres between > a OneToOneField and a ForeignKey with unique=True > > Is there any/much difference in Django? > At a database level - no. The implementation is identical, to the ext

foreign key with unique versus one-to-one

2013-04-03 Thread Mike Dewhirst
I have noticed that there appears to be no difference in Postgres between a OneToOneField and a ForeignKey with unique=True Is there any/much difference in Django? Thanks Mike -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe fr

django-filetransfers and HttpResponseRedirect

2013-04-03 Thread Venkatraman S
I use django-filetransfers in my app and had a quick Q on one of the comments by the author in this post : http://www.allbuttonspressed.com/projects/django-filetransfers He mentions "Note that it's important that you send a redirect after an upload. Otherwise, some file hosting services won't work

Re: question on howt to run phpadmin on my Django web app server.

2013-04-03 Thread Lachlan Musicman
It's an apache thing - it (vaguely, when distilled, my language may be incorrect) looks like this: browser - web server(apache/nginx) - app server (django/phpmyadmin) - database server I presume you are using some sort of Debian as you are on the RPI, in which case apt-get phpmyadmin should be a

question on howt to run phpadmin on my Django web app server.

2013-04-03 Thread 7equivalents
Hello, I'm just looking for a point in the right direction. I have a raspberry pi running an apache server that is serving a Django web app. If I want to also use myphpadmin, would it be some thing I configured Apache to help happen, or Django, I'm thinking apache, but I want to be sure. -- Yo

Third-party data entry

2013-04-03 Thread forthfan
Hello all, Is there a package available that would let the user request data from another party? For example, you have all the data filled in for a shipment and you need the Bill of Lading number from the shipper. When the shipper provides it, it goes into the dataset for the shipment without

Re: Django Core mentorship list

2013-04-03 Thread Jeremy Dunck
Ahem: [1] https://groups.google.com/forum/?fromgroups#!forum/django-core-mentorship :) On Wed, Apr 3, 2013 at 11:44 AM, Jeremy Dunck wrote: > Hey all, > I've just created django-core-mentorship[1] with founding members > including Carl Meyer, Jacob Kaplan-Moss, Simon Charette, and Russell > K

Re: e commerce django framwork

2013-04-03 Thread Andre Engelbrecht
I've not used Satchmo myself, so I can only say what I've heard others say. Some people like it, many don't. As far as I understand it's quite a monolith (someone correct me if I'm wrong pls). There is another project called satchless, which is aimed at providing you with all the building blocks

Re: General Apache Deploy Strategy

2013-04-03 Thread Nikolas Stevenson-Molnar
Fabric is helpful for scripting deployment process: http://docs.fabfile.org/en/1.6/ _Nik On 4/2/2013 4:51 PM, Mike Dewhirst wrote: > On 3/04/2013 1:04am, Sells, Fred wrote: >> We use django for intranet applications. There is minimal coupling >> between applications and we generally dedicate a v

Django Core mentorship list

2013-04-03 Thread Jeremy Dunck
Hey all, I've just created django-core-mentorship[1] with founding members including Carl Meyer, Jacob Kaplan-Moss, Simon Charette, and Russell Keith-Magee. Modeled after pythonmentors.com, the intention is to help more people make the leap from using django to contributing to it. It is a com

Can I access session in my middleware?

2013-04-03 Thread Паша Тявин
When I access my session in middleware, Django makes dublicate rows in db. I don't know why. Please, help me find out the mistake I've made a simple github project for that question https://github.com/vinograd19/django-session-problem . It contains only 8 simple files, so maybe it would be easy.

Problems receiving data from DB (sqlite3)

2013-04-03 Thread Johannes
Hi list, I have a confusing behaviour when I try to access some data in the DB. I created a model and build the database with syncdb. I can create and save data via python manage.py shell and it's still available after I a restart of the shell. But this data is not visible from the testserver. Even

Re: ModelForm not creating datepicker

2013-04-03 Thread Nick D
I see. The difference between the form item and a widget was confusing me. Thanks Tom! -Nick On Wednesday, April 3, 2013 8:54:40 AM UTC-7, Tom Evans wrote: > On Wed, Apr 3, 2013 at 12:14 AM, Nick D > > wrote: > > Hi all, > > > > I've created a ModelForm and am attempting to use it, but al

Re: ModelForm not creating datepicker

2013-04-03 Thread Tom Evans
On Wed, Apr 3, 2013 at 12:14 AM, Nick D wrote: > Hi all, > > I've created a ModelForm and am attempting to use it, but all of my date > fields are coming up with type "text" instead of a datepicker. Can anybody > tell me what's going on? > DateField forms are still represented by a simple widget

Re: How to create a form list for a Model Form dynamically?

2013-04-03 Thread Cody Scott
I needed to pass an instance dictionary, but now I am having a problem with my models? http://stackoverflow.com/questions/15684557/setting-choices-and-forms-at-runtime-for-a-form-wizard On Wednesday, April 3, 2013 11:06:57 AM UTC-4, Nick D wrote: > > I see; I didn't understand the flow at first.

Re: ModelForm not creating datepicker

2013-04-03 Thread Nick D
Thanks for your reply. The Django documenation for ModelForm states that a DateField should create a DateField form object. DateFieldDateFieldDateTimeFieldDateTimeField https://docs.djangoproject.com/en/dev/topics/forms/modelforms/ On Tuesday, April 2, 2013 9:23:47 PM UTC-7, sacrac wrote:

Re: How to create a form list for a Model Form dynamically?

2013-04-03 Thread Nick D
I see; I didn't understand the flow at first. Is this line wrong "quiz = Quiz.objects.get(id=quiz_id)"? I don't think Django names the pk "id" by default. Maybe it should be: quiz = Quiz.objects.get(pk=quiz_id) On Monday, April 1, 2013 7:17:13 AM UTC-7, Cody Scott wrote: > I am trying to ma

Re: e commerce django framwork

2013-04-03 Thread mmrs151
Have a look at django-oscar(https://github.com/tangentlabs/django-oscar) Its a domain driven e-commerce platform, so should be interesting. On Wednesday, 3 April 2013 09:03:51 UTC+1, mds...@gmail.com wrote: > > I have heard about Satchmo and would love to hear about anyone's > experience using i

Re: How to create a form list for a Model Form dynamically?

2013-04-03 Thread Cody Scott
The function I was calling there was in the urls.py file and it only took one parameter. I tried it again and with passing request and it still says quiz_id is unknown... On Monday, April 1, 2013 10:17:13 AM UTC-4, Cody Scott wrote: > > I am trying to make a simple quiz app. > > I am trying to g

e commerce django framwork

2013-04-03 Thread mdsn85
I have heard about Satchmo and would love to hear about anyone's experience using it. Are there any other Python/Django based e-commerce (a.k.a. shopping cart) solutions out there that you would recommend? -- You received this message because you are subscribed to the Google Groups "Django us

Re: Webfaction vs DigitalOcean

2013-04-03 Thread Frankline
I love the simplicity of Webfaction and I'm happy with it. On Wed, Apr 3, 2013 at 1:10 PM, frocco wrote: > Very happy with webfaction and their support. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group an

Re: General Apache Deploy Strategy

2013-04-03 Thread Michael Anckaert
The fact that you have to copy over the entire project directory (including docs) shouldn't be an issue. If your application deployment is correctly the user won't be able to access anything that isn't in your root urlconfig. If the issue is upload size you should be able to find benefit using

Re: Webfaction vs DigitalOcean

2013-04-03 Thread frocco
Very happy with webfaction and their support. -- 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, s

SpatialRefSys as foreign key?

2013-04-03 Thread Alessandro Candini
Hi everybody. Using the working stuff reported at https://code.djangoproject.com/wiki/GeoDjangoExtras, I've written the following model: from django.contrib.gis.models import SpatialRefSys class LandCover(models.Model): shp_name = models.CharField(max_length=100) geom_srid = models.