Admin documentation incorrect hyperlinks

2020-07-01 Thread Martyn Pearson
I have an issue with Django, so wanted to raise it here before going to the extent of raising a bug. For a simple scenario, I have a site "Survey", an app "Report" and models "Question" and "Answer". Note that the case is important; I've capitalised the first letter of each. Admin

Re: load-on-startup equivalent in django?

2011-10-21 Thread Martyn Harris
loose the connection, then it would need to be restarted otherwise you'll get a 'connection refused'. Martyn On Oct 20, 6:38 am, Ken <xie.kenn...@gmail.com> wrote: > Hello all >     I'm new to django and I have a question. > >     I want to find a way to run some code periodicly

Re: Newbie help with namespaces in urls.py

2009-12-23 Thread Martyn
modules and sub-packages). > > See the documentation and tutorials at python.org > > > > On Wed, Dec 23, 2009 at 7:29 AM, Martyn <martyn.ha...@gmail.com> wrote: > > Hey, > > > I'm new to django, so please excuse me for asking simple questions for > &

Premature end of script headers

2009-12-23 Thread Martyn
, Martyn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit

Newbie help with namespaces in urls.py

2009-12-23 Thread Martyn
right. Thanks for your help, Martyn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@google

[Django] Django + Godaddy

2009-08-25 Thread Andrés Martín - martyn
Hi django Users. I need to know if somebody has used Django on godaddy Host service ? If yes, is easy to configure ? what recomended to me in that case ? Thank you! Regards -- Andrés Martín Ochoa; passport: andresmar...@linuxmail.org; Linux Registered User #436420; Asterisk User Number: 1000;

Passing a param in __init__ of an inlineformset

2009-06-23 Thread martyn
Hi, I was looking for solutions to pass a param into forms created with inlineformset. Basicaly, I want to prepopulate a ChoiceField of my form with datas which comes from parent.parent.instance I've pasted the entire code (models / forms / views) here

Re: FileBrowser and TinyMCE

2009-01-20 Thread martyn
I changed function CustomFileBrowser(field_name, url, type, win) { into function DjangoFileBrowser(field_name, url, type, win) { and it works ... Thank you krylatij, it was not a setting problem, anyway, thank you :) On 20 jan, 11:11, martyn <martyn.clem...@gmail.com> wrote: &g

Re: FileBrowser and TinyMCE

2009-01-20 Thread martyn
I have tinyMCE.init( ... "file_browser_callback": "DjangoFileBrowser" ) using django-tinymce. What's wrong ??? This app doesn't look at the settings ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: FileBrowser and TinyMCE

2009-01-20 Thread martyn
Ok, thank you, I've changed my settings, with unfortunately no result : TINYMCE_DEFAULT_CONFIG = { 'dialog_type' : "modal", 'extended_valid_elements' : "a[name|href|target|title|onclick| rel]", 'theme':'advanced', 'theme_advanced_toolbar_location' : "top",

Re: FileBrowser and TinyMCE

2009-01-20 Thread martyn
some magic... mh 'file_browser_callback' : "Abracadabra", On 20 jan, 09:01, krylatij wrote: > Look into your settings again. > I've had such problem before. > After some magic with settings everything works. --~--~-~--~~~---~--~~ You

FileBrowser and TinyMCE

2009-01-19 Thread martyn
Hi, I'm trying to get TinyMCE working with django-filebrowser. I started to make Tiny working : # === settings.py : INSTALLED_APPS = ( #... 'tinymce', 'filebrowser', #... ) TINYMCE_JS_URL = MEDIA_URL + 'js/tiny_mce/tiny_mce_src.js' URL_TINYMCE = TINYMCE_JS_URL

Re: Your IDE of choice

2009-01-06 Thread martyn
Hi http://pyrox.utp.edu.co/ Regards Bye. On Jan 6, 9:34 am, roberto wrote: > I tried them all (almost ... I think... at least the free ones). > - Pyscripter is really nice but it is true, it is only for windows. > (If it is developed with python it should be

Re: Does Django have a function that can be called by every view function ?

2008-12-01 Thread martyn
David, +1 for decorator. That let you use it or not in each view. On Dec 1, 9:30 am, David Shieh <[EMAIL PROTECTED]> wrote: > Thanks , David Zhou , I will find some information for decorator > And also , I will surf for middleware . > > Thank you very much , Malcolm. > > On Dec 1, 3:55 pm,

Gis Admin > Template not found

2008-09-16 Thread martyn
Hi, I'm trying to get a correct admin interface with the default openlayers. Here are my models/admin : #models.py from django.contrib.gis.db import models from django.contrib.auth.models import User class Competitor(models.Model): # User pour auth + Utilities user =

Re: Admin : Select category -> show subcategory

2008-05-21 Thread martyn
change my select list... } I'm not sure about the exact syntax, but the jquery IRC or documentation could help me. Thank you Diego On 21 mai, 03:38, Diego Ucha <[EMAIL PROTECTED]> wrote: > Ok Martyn, understood. > Mainly that piece of code represents many functions, one inside the &

TreeMenus / Extension - selected item

2008-05-20 Thread martyn
Hi, I'm trying TreeMenus : http://code.google.com/p/django-treemenus/ It's a realy good job. Thanks to its author. There is just a little bemol, I don't find the documentation really excplicit, especially concerning the "Class Extension". In the doc :

Re: Admin : Select category -> show subcategory

2008-05-20 Thread martyn
In fact, at the creation, you select a category, the the subcategories are shown. It's OK /*-/*-/*-/*-/*-/*-/*-/*-/*-/*-/*-/*-/*-/*-/*- ===Create_Object=== Category [--select_category--] SubCategory [--select_subcategory--] /*-/*-/*-/*-/*-/*-/*-/*-/*-/*-/*-/*-/*-/*-/*- But, at the

Re: Admin : Select category -> show subcategory

2008-05-20 Thread martyn
In fact, at the creation, you select a category, the the subcategories are shown. It's OK But, a On 18 mai, 01:22, Diego Ucha <[EMAIL PROTECTED]> wrote: > You need to set a Subcategory as default when this field is loaded by > the field Category? > Sorry Martyn, i didn't get yo

Re: Admin : Select category -> show subcategory

2008-05-12 Thread martyn
It's true, I don't know for what reason I changed this before posting, but I've seen the error to, correct it and, no way. But I made a error on my urls, this /admin/boutique/produit/getsubcategory/ was not the same as urls.py, so I had no response. Now I've got another question. I've never used

Re: Admin : Select category -> show subcategory

2008-05-08 Thread martyn
ngth; i++) { options += '<option value="' + j[i].id + '">' + j[i].nom + '</option>'; } $("select#id_sous_categorie").html(options); }) alert("there") }) }) {% endblock %} The only alert I've got is [[there]] and never [[here]]. All seems

Re: Admin : Select category -> show subcategory

2008-05-08 Thread martyn
That's it ! I'm discovering JQuery, not very "sexy" for the first time, but seems to be really powerfull. Thank you Diego. Django community really rocks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Admin : Select category -> show subcategory

2008-05-05 Thread martyn
JQuery, besides > there are some discussion about those libs on the list). > > For filling this subcategory field, in terms of data transmission, i > use JSon, because JQuery has a fine JSon parser, in few lines it's all > done. > > []s, > Diego Ucha > > On May 2

Admin : Select category -> show subcategory

2008-05-02 Thread martyn
Hi, I've created a simple product model : class Produit(models.Model): nom = models.CharField(maxlength=200) slug = models.SlugField(prepopulate_from=('nom',)) description = models.TextField(blank=True) published = models.BooleanField(default=True)

1 django Project / 2 designs

2008-04-15 Thread martyn
Hi, I can't solve my problem, I have a site that can contain 2 designs (summer / winter). Ideally, My urls are : http://domain.com/winter/ http://domain.com/summer/ But when I go to http://domain.com/ I want a default saison (that could be stored in my settings file). It's not only a

Re: Fedora Core 4 - Django-dev & Mysql

2008-04-14 Thread martyn
ion is to download the source and compile.  A > better solution, i.e. a prebuilt RPM, might be available from > somewhere, I haven't searched. > > ---Peter > > On 4/14/08, martyn <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > I'm using Fedora Core 4 and My

Fedora Core 4 - Django-dev & Mysql

2008-04-14 Thread martyn
this : ""ImproperlyConfigured: MySQLdb-1.2.1p2 or newer is required; you have 1.2.0"" I can't find any mysql-python-1.2.1 for FedoraCore4. If someone knows the problem, thanks for helping me. Martyn --~--~-~--~~~---~--~~ You received this message becaus

Django on plesk - Virtual Host

2008-04-11 Thread martyn
from http://www.djangoproject.com/documentation/modpython/) : ServerName django.domain.fr SetEnv DJANGO_SETTINGS_MODULE myproject.settings With no success. I really want to improve my knowledge into Django Deployement on apache. Thanks in advance. Martyn

Re: Apps that generate forms with variable fields

2008-04-09 Thread martyn
is langage but I can't think differently for now. I'll read more on Newforms on Django site but any ressource are welcome. Thanks again ; Martyn On 8 avr, 23:24, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > Hi, > > > > > I have to create an app with django that allow

Apps that generate forms with variable fields

2008-04-08 Thread martyn
Hi, I don't want any help on how to write my model but I just want to have your opinion about how to do this by the simpliest way. I'm a django beginner. I have to create an app with django that allows users in front end to create their own forms with a number variable of fields and a variable

Re: "clever" fields

2008-03-31 Thread martyn
Hi, Do you know the class Admin, a subclass of your model ? http://www.djangobook.com/en/1.0/appendixB/#cn311 Maybe it could help you. On 31 mar, 13:46, Grupo Django <[EMAIL PROTECTED]> wrote: > Hi! > I'm trying to create a generic form template for a custom admin zone. > I'm doing it this >

Re: Cannot run Django on my local machine

2008-03-28 Thread martyn
OK, I've set Debug to FALSE, so I set it False and it's OK let's have fun ! Django rocks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Cannot run Django on my local machine

2008-03-28 Thread martyn
Are you looking over my shoulders ? :) Yes I've set up a wiki this 1 hour ago. I cleaned my cookies and now he wants a 404.html template I've never seen this before I'll try to specify my template dir --- Traceback (most recent call last): File

Cannot run Django on my local machine

2008-03-28 Thread martyn
Hi, I've already run Django on my Laptop (OpenSuse 10.3) and it was so easy thanks to it's own dev server. On my desktop, I tried to run Djangon (openSuse 10.3 too). Django Install : OK import django : OK Startproject : OK runserver : OK When I open my favorite browser, the only thing I can