Re: Change "Add another" text in inline views

2014-08-30 Thread Stuart Longland
Hi Mike, On 31/08/14 15:46, Mike Dewhirst wrote: >> i.e. the related object is optional, not provided by default, and at >> most there can only be one. You'll note that despite max_num being set >> to 1, it still says "Add//another". Is it possible to delete the word >> "another" from that text t

Re: Change "Add another" text in inline views

2014-08-30 Thread Mike Dewhirst
On 31/08/2014 10:05 AM, stua...@longlandclan.yi.org wrote: Hi all, This is a bit of a silly question, but I wonder if it is possible to change the "Add Another" text that appears on inline forms with related models. I'm in the process of writing a network configuration module in Django that tal

Change "Add another" text in inline views

2014-08-30 Thread stuartl
Hi all, This is a bit of a silly question, but I wonder if it is possible to change the "Add Another" text that appears on inline forms with related models. I'm in the process of writing a network configuration module in Django that talks with NetworkManager with the intent on using it for hea

Re: how to get a list of all installed applications

2014-08-30 Thread Collin Anderson
The soon-to-be-released version 1.7 has a documented API for accessing all models and apps: https://docs.djangoproject.com/en/1.7/ref/applications/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receivi

Re: Django 1.7 tutorial: Use generic views

2014-08-30 Thread Sithembewena Lloyd Dube
I suggest typing: - manage.py shell - from polls import views - dir(views) What output do you get? i.e, nspect views like the regular python module that it is. On Sat, Aug 30, 2014 at 6:41 PM, Pitchblack wrote: > I need to use Jython instead of Python, I found that jython2.7b2 works > with DJa

Re: Django admin can't display user detail view: 500 error

2014-08-30 Thread amarshall
Okay, I got everything working. I was totally over thinking things I think. I added the ADMINS variable in my settings to get a traceback and it seems a package(django-tastypie) I installed on my development side I forgot to install on the production side. Once I installed it, I migrated it's ne

Re: how to get a list of all installed applications

2014-08-30 Thread Cj Welborn
On Sunday, May 20, 2007 11:51:49 AM UTC-5, Malcolm Tredinnick wrote: > > Have a look in django/db/models/loading.py . There are a number of > useful methods in there. In particular, get_apps(), which contrary to > what you claim above, should give you all installed apps, not installed > models (y

How to insert an inline in admin with the simple model without fk?

2014-08-30 Thread Gladson SimplĂ­cio Brito
class Infos(Model): created = DateTimeField(auto_now_add=True)modified = DateTimeField( auto_now=True) name = CharField(max_length=255, blank=False, null=False) phone = CharField(max_length=255, blank=False, null=False) address = CharField(max_length=255, blank=False, nul

Django 1.7 tutorial: Use generic views

2014-08-30 Thread Pitchblack
I need to use Jython instead of Python, I found that jython2.7b2 works with DJango 1.7. So, I am stuck using the beta version. I am trying to follow the current Django tutorial and I have ran into a problem. I am not sure if I am using generic views properly. When I try to change the urls.py (

Re: how to call django web page with ordinary html page

2014-08-30 Thread Collin Anderson
If it helps, you can read/set the csrf cookie using javascript. here's some rough code: if(!document.cookie.match('csrftoken=([a-zA-Z0-9]{32})')){ for(var c = ''; c.length < 32;) c += Math.random().toString(36).substr(2 , 1) document.cookie = 'csrftoken=' + c + '; path=/' } document

Re: Django framework plugin

2014-08-30 Thread Collin Anderson
All you need to do is make sure the directory containing "Djangowork" is on the python path, then just add "Djangowork" to the INSTALLED_APPS of a different project. see here for more info: https://docs.djangoproject.com/en/dev/intro/reusable-apps/ -- You received this message because you are

Re: response to ajax (jquery) with variables

2014-08-30 Thread Andreas Kuhne
Hi again Antonio, First of all, make sure you are using a good browser with debugging capabilities (I prefer Chrome), because you'll need it. Secondly, I usually use the $.ajax request, instead of the post. Mainly because post is a wrapper around ajax and you can more finely change the settings o