Re: I LOVE THIS COMMUNITY!

2012-09-03 Thread Venkatraman S
We have your curiosity...as well as your attention ;) http://www.youtube.com/watch?v=eUdM9vrCbow -V twitter.com/venkasub On Wed, Aug 22, 2012 at 10:21 AM, Pervez Mulla wrote: > Yup.:) Really its very awesome community :) > On Wed, Aug 22, 2012 at 9:19 AM, JJ Zolper wrote: > >> I agree

resize modelform fields on template

2012-09-03 Thread mapapage
Hi all! I'd like to know if there's a way to resize my modelform fields on the template. They're being rendered too big for the text input. I tried this : name = forms.CharField( widget=forms.TextInput(attrs={'size':'40'})) but it didn't work. I also changed the width in css bu

Re: Django deployment questions

2012-09-03 Thread Matt Stevens
Hi Mike, I think this is a matter of preference. I've always cloned the entire repository - new features can go live by simply checking out a new branch, if something goes wrong I can just checkout the (stable) master branch again. I can also see if any boxes are out of sync with the current c

Re: Django deployment questions

2012-09-03 Thread Matt Stevens
One more thing, my repositories are usually quite small. My virtualenv and static file directories are in my .gitignore, so they're never included. So cloning an entire repo isn't a big deal and disk space itself is very rarely a problem (and when it is, it's not down to the size of the repo).

Django admin forms - using a different/unconventional widget for a field

2012-09-03 Thread filias
Hi, I have a DateTimeField in my model but I want to show with a CheckboxInput. We have a DateTime field in the model because we want to save the datetime when the instance was cancelled but we dont want the user to see that and just check or uncheck the cancellation checkbox. I already overro

Django & postgresql arrayfield support + filtering objects based on array contents

2012-09-03 Thread zayatzz
Hello About a year ago i found this : https://github.com/aino/django-arrayfields and developed upon it (https://github.com/zay2/django-arrayfields) and integrated it into my project. Now i know that in postgresql i can do something like this: SELECT * FROM sal_emp WHERE 1 = ANY (pay_b

Re: Editable Tables

2012-09-03 Thread zayatzz
For this kind of thing django has forms and formsets. I would think that this can be achieved quite easyly by using formsets. What you can do - you can write your own widgets for this kind of table. Like widget that renders value not just input. and then just use your javascript to bind click

Installation script?

2012-09-03 Thread Carsten Agger
I've created a Django web service consisting of two separate sites, by default running on the same server, which implements a "document broker" service capable of centralizing the generation of office documents. This work was made on behalf of my employer Magenta ApS - the code is available on

Re: Django admin forms - using a different/unconventional widget for a field

2012-09-03 Thread zayatzz
In form, that displays the checkbox do something like this: def __init__(self, *args, **kwargs): super(FormName, self).(*args, **kwargs) if self.instance and self.instance.checkboxfieldname != None: #we check if this form has instance and if checkbox : attrs = {'checked':'checked'}

Re: Installation script?

2012-09-03 Thread Andres Reyes Monge
Take a look at this project https://github.com/dcramer/logan On Monday, September 3, 2012 6:39:41 AM UTC-6, Carsten Agger wrote: > > I've created a Django web service consisting of two separate sites, by > default running on the same server, which implements a "document broker" > service capabl

Re: Django admin forms - using a different/unconventional widget for a field

2012-09-03 Thread filias
Perfect! Thanks a lot alan :) On Monday, September 3, 2012 3:28:29 PM UTC+2, zayatzz wrote: > > In form, that displays the checkbox do something like this: > def __init__(self, *args, **kwargs): > super(FormName, self).(*args, **kwargs) > if self.instance and self.instance.checkboxfieldna

To Use or Not to Use the admin backend

2012-09-03 Thread Frankline
Hi, I'm creating a site in Python/Django and feel that the admin backend, as good as it is, may not be a one-fit-for-all situations. My question is this: Have any of you ever had a need to have a custom admin backend? In what example situations would one create his/her own admin backend rather

Re: Editable Tables

2012-09-03 Thread Julio Ona
Sait, yo can look to: etchjs.com Regards, On Mon, Sep 3, 2012 at 8:20 AM, zayatzz wrote: > For this kind of thing django has forms and formsets. I would think that > this can be achieved quite easyly by using formsets. What you can do - you > can write your own widgets for this kind of table.

Re: looking for help to make build for django web application

2012-09-03 Thread puneet loya
u getting error for distutils.core?? Then download setup tools of python.. On Friday, April 20, 2012 9:12:16 PM UTC+5:30, Prit wrote: > > Hello Guys > > is there any one had use the Distutils for Distributing Python > Modules,I am looking for make build or setuptools for django applic

Re: Django & postgresql arrayfield support + filtering objects based on array contents

2012-09-03 Thread Axel Rau
Am 03.09.2012 um 14:15 schrieb zayatzz: > But since django does not offer postgresql arrayfields support Jonathan S. Katz implemented a library of Django extensions for PosgreSQL and wrote an excellent presentation: http://wiki.postgresql.org/images/e/e6/Django-extensions.pdf htt

Re: Django admin forms - using a different/unconventional widget for a field

2012-09-03 Thread zayatzz
No problem man! just trying to help just like i have been helped by others here :) alan On Monday, September 3, 2012 5:40:03 PM UTC+3, filias wrote: > > Perfect! > > Thanks a lot alan :) > > On Monday, September 3, 2012 3:28:29 PM UTC+2, zayatzz wrote: >> >> In form, that displays the checkbox d

bound field object - dynamic forms

2012-09-03 Thread mjh
Hi all - not sure how to show the choicefield dropdown in my template? Am generating a dynamic form (note: for issue in issues in forms.py) and appending the fields to self.issue_list in the template I am looping over these fields ({% for issue in form.issue_list %}) and can write out the lab

Development server won't work from a shared web host

2012-09-03 Thread ecs1749
I have Django working from a shared host account (westhost). I was able to follow all of the steps in tutorials 1 & 2 except the part on starting the development server. Apparently westhost won't let you run that. Without the development server, how do I access the Django admin functions? T

Re: Development server won't work from a shared web host

2012-09-03 Thread Jonathan Baker
In the 'Running the Development Server' section of this pagein the tutorial it states that: "Although this server is convenient for development, resist the temptation to use it in anything resembling a production environment. The development server can h

Re: To Use or Not to Use the admin backend

2012-09-03 Thread Mario Gudelj
You can certainly write your own. I wrote one for a saas solution i worked on since it was quite custom and i didn't need much of the functionality admin offered. But admin will help you with all that CRUD you normally have to create yourself. So, it really depends what your requirement is. M On S

[ANN] django-ajax-form-mixin v.0.0.1

2012-09-03 Thread Jonas Geiregat
Hello everyone, I made a small application last weekend that is ready to be released. It's takes on django-ajax-validation by replacing the view with a mixin and improving the jQuery callback possibilities. Source: https://github.com/jonasgeiregat/django-ajax-form-mixin Documentation: http://d

Re: To Use or Not to Use the admin backend

2012-09-03 Thread Lachlan Musicman
On Tue, Sep 4, 2012 at 3:38 AM, Frankline wrote: > Hi, > > I'm creating a site in Python/Django and feel that the admin backend, as > good as it is, may not be a one-fit-for-all situations. > > My question is this: > > Have any of you ever had a need to have a custom admin backend? Only just yest

Re: bound field object - dynamic forms

2012-09-03 Thread Mario Gudelj
Try {{ issue.0}} and {{ issue.1}} On Sep 4, 2012 5:55 AM, "mjh" wrote: > Hi all - not sure how to show the choicefield dropdown in my template? > > Am generating a dynamic form (note: for issue in issues in forms.py) and > appending the fields to self.issue_list > > in the template I am looping

Re: To Use or Not to Use the admin backend

2012-09-03 Thread Lachlan Musicman
Oh, and I forgot to mention, there's this video: http://python.mirocommunity.org/video/1861/djangocon-2010-customizing-the which I watched recently - it's a bit old, but interesting none the less cheers L. -- You received this message because you are subscribed to the Google Groups "Django us

Validating GB telephone numbers in Django forms.

2012-09-03 Thread g1smd.1
I see that there are routines for validating telephone numbers in forms in Django for several countries. The code for that can usually be found in the forms.py file located in the various country folders here: https://github.com/django/django/tree/master/django/contrib/localflavor So far, ther

Re: To Use or Not to Use the admin backend

2012-09-03 Thread Barry Morrison
My $.02 cents. It's great to have around while you're working, but my n00b experience taught me it left a lot to be desired so I rolled my own for the last two projects I built. FWIW, a local dev gave this quick presentation, and they did an incredible job on hacking the default admin https

Is the logic in my model correct? Best-case?

2012-09-03 Thread Barry Morrison
Model: http://dpaste.org/dqwmc/ There can be many products. There can be many distributors. A product could have none or more distributors. A distributor could only distribute a single product once. A distributor could distribute all products. I imagine a form (admin side): Product Name: Produ

Re: Development server won't work from a shared web host

2012-09-03 Thread ecs1749
Thanks for the reply. Yes, I saw that message. I am a bit lost where to go next if I completely ignore that tutorial regarding doing admin from the development server (which I don't have). Do I dive into tutorial #3 and hope that it will pick up the admin stuff later when it gets to talk ab

'str' object is not callable in base.py

2012-09-03 Thread Lachlan Musicman
Hi all, Stumped on this one: Traceback: Environment: Request Method: GET Request URL: http://127.0.0.1:8000/tafe/timetable/2012-4/ Django Version: 1.4 Python Version: 2.7.3 Installed Applications: ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.con

Re: Provide editable single text field (through admin) w/o using a whole model

2012-09-03 Thread RK
I've had a look at the constance app and it meets my reqs pretty good. I'm installing it now, thank's for the feedback. Russell thank you for the thorough answer, it did make some ideas bubble, saddly I'm not a big wheel re-inventor, at least not in django. The waste for me was to code properly

Re: To Use or Not to Use the admin backend

2012-09-03 Thread Frankline
An example use case is if I need an admin backend with features for reports and graphs, aside from other site configurations. On Tue, Sep 4, 2012 at 4:48 AM, Barry Morrison wrote: > My $.02 cents. It's great to have around while you're working, but my > n00b experience taught me it left a lot

Re: 'str' object is not callable in base.py

2012-09-03 Thread zayatzz
>From this post i can see this line beeing wrong . timetable = get_object_or_404(slug=slug) You also need to give object as one of the parameters for get_object_or_404 shortcut: like this : https://docs.djangoproject.com/en/dev/intro/tutorial03/?from=olddocs#a-shortcut-get-object-or-404 Alan

Re: Development server won't work from a shared web host

2012-09-03 Thread Daniel Roseman
On Tuesday, 4 September 2012 03:32:08 UTC+1, ecs1749 wrote: > > Thanks for the reply. Yes, I saw that message. I am a bit lost where to > go next if I completely ignore that tutorial regarding doing admin from the > development server (which I don't have). Do I dive into tutorial #3 and > h