Re: Plz, I am just new to Python...

2007-10-10 Thread lispingng
actually django templates look more like php smarty templates. i also am from php and am new to django. i don't think installing django on windows is such a big deal. i just unzipped the tar and copied it to the python25\lib\site-packages \ folder and that was it (i think) On Oct 4, 9:52 pm, John

Integrate xmpppy with django

2007-10-10 Thread est
Hi, all I am writing a GoogleTalk bot for my django site, but I don't know were to initiate a xmpppy Client object in Django. Should I put it in my project's __init__.py ? I need the bot to be always online so where can I write a GLOBAL, long survival object in Django? How can I make xmpppy Clien

Re: Get model's attributes

2007-10-10 Thread xunSir
Now, it's OK! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED]

Re: Integrate xmpppy with django

2007-10-10 Thread Christoph Rauch
est schrieb: > I am writing a GoogleTalk bot for my django site, but I don't know > were to initiate a xmpppy Client object in Django. Should I put it in > my project's __init__.py ? I need the bot to be always online so where > can I write a GLOBAL, long survival object in Django? How can I make

Re: Serving static media on the development server

2007-10-10 Thread cschand
You want add the style sheet still.css on admin control panel or application? On Oct 10, 11:21 am, "Nikola Stjelja" <[EMAIL PROTECTED]> wrote: > i'm a noob in Django, and I'm currently learning it. I tried to use style > sheets from an external css file but it didn't work. I copyed the code from

Re: Serving static media on the development server

2007-10-10 Thread Nikola Stjelja
On 10/10/07, cschand <[EMAIL PROTECTED]> wrote: > > > You want add the style sheet still.css on admin control panel or > application? To an application. It be really helpfull if you have an idea what i've done wrong. :) On Oct 10, 11:21 am, "Nikola Stjelja" <[EMAIL PROTECTED]> wrote: > > i'm a

Re: Integrate xmpppy with django

2007-10-10 Thread est
Thank you Christoph. Yes I have tried a independent daemon, but that's a bit complicated for a small site. Is there a simipler way? Simple is better. On Oct 10, 5:23 pm, Christoph Rauch <[EMAIL PROTECTED]> wrote: > est schrieb:> I am writing a GoogleTalk bot for my django site, but I don't > k

Re: Nested Inlines, dynamic forms, templates and all sorts of problems.

2007-10-10 Thread [EMAIL PROTECTED]
Hi yml, On 9 Oct, 20:11, yml <[EMAIL PROTECTED]> wrote: > In a very similar situation I have chosen option 2 for the following > reasons: > * the code was much more simple, at least simpler to maintain for me > * Very hight control on the layout of the form. Thanks for the reply. I think I'll

flatpages and 404s

2007-10-10 Thread [EMAIL PROTECTED]
Hi all, I have (as far as I am aware) installed the flatpages app correctly, set up the MIDDLEWARE_CLASSES correctly, got a flatpages/default.html template on my template path, got the leading and trailing slashes on my flatpages (created via the admin interface) adn my SITE_ID is set to the only

Re: RegexField and Admin interface

2007-10-10 Thread oliver
Regex is done via a custom validator. works pretty simple. here is an example how i use to check if the entered data is a correct UK postcode (zip code) from django.core import validators you might need to import some thing else as well (import datetime, random, sha, re, os, Image, urllib thats

Re: Integrate xmpppy with django

2007-10-10 Thread Jarek Zgoda
If you insist on integratin Jabber/XMPP into your site, I'd suggest *NOT USING* xmpppy. This library is flawed in many ways and do not conform many standards published in XMPP RFC. Use pyxmpp (http:// pyxmpp.jajcus.net/) instead. It is written by a member of Jabber board and is more compatible wit

Re: RegexField and Admin interface

2007-10-10 Thread Nader
Thank you for your reaction at the first place! What I have understand of it is that I have to define some class, in your case: class Property(models.Model): and in this class a method (function) in which we can define our regular expression : def isValidReferenceID0(self, field_data):

NameError when following tutorial in djangobook.com/en/beta/chapter03/

2007-10-10 Thread drdukk
I'm new to python and django and I'm trying to follow the tutorial on djangobook.com, but when i get to the step (chapter 3) where the first piece of code should be executed (current_time) i get a NameError telling me "name 'current_datetime' is not defined" I'm running django 0.96 on python 2.5.

see indian nudu viedo and pics

2007-10-10 Thread harina
see indian nudu viedo and pics http://chromoo.blogspot.com/ --~--~-~--~~~---~--~~ 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 fr

NameError when following tutorial in djangobook.com/en/beta/chapter03/

2007-10-10 Thread drdukk
I'm new to python and django and I'm trying to follow the tutorial on djangobook.com, but when i get to the step (chapter 3) where the first piece of code should be executed (current_time) i get a NameError telling me "name 'current_datetime' is not defined" I'm running django 0.96 on python 2.5.

Re: Integrate xmpppy with django

2007-10-10 Thread est
Many thanks for you suggestion. But you see I am currently having problem with integration, not XMPP. I'll consider switch to pyxmpp when the integration is done. On Oct 10, 5:59 pm, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > If you insist on integratin Jabber/XMPP into your site, I'd suggest > *N

NameError when following tutorial in djangobook.com/en/beta/chapter03/

2007-10-10 Thread drdukk
I'm new to python and django and I'm trying to follow the tutorial on djangobook.com, but when i get to the step (chapter 3) where the first piece of code should be executed (current_time) i get a NameError telling me "name 'current_datetime' is not defined" I'm running django 0.96 on python 2.5.

Flatpages

2007-10-10 Thread AniNair
Hi, I am trying to add tinymce to flatpages in admin using change_from.html in admin/flatpages/flatpage. this is change_form.html {% extends "admin_copies/change_form.html" %} {% block extrahead %}{{ block.super }} {% endblock %} Django is returning error that [10/Oct/2007 17:09:40] "GET /admi

Re: Plz, I am just new to Python...

2007-10-10 Thread Chris Hoeppner
you'd also need a python interpreter, but since you talked about site-packages, I guess that's done already ;) You might also want to setup a database. El mi�, 10-10-2007 a las 00:43 -0700, lispingng escribi�: > actually django templates look more like php smarty templates. > i also am from php a

Re: Totally Stumped - Authenticate and Login a user

2007-10-10 Thread JimR
Any Suggestions? Thanks, Jim --~--~-~--~~~---~--~~ 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 [E

Calling all Django / Python Developer

2007-10-10 Thread Jon
Hey all you Django Guru's! I'm a recruitment consultant working within the interactive sector in London. One of my clients has an excellent opportunity for an experienced Django / Python Developer. Suitable candidates ideally will have previously worked for a tier 1 type consumer internet compan

Re: Plz, I am just new to Python...

2007-10-10 Thread AniNair
unzip the trunk file downloaded to libs/site-packages/ and try import django from idle. If it returns no errors, that's it == django is installed. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gro

Re: Flatpages

2007-10-10 Thread peschler
Try to prepend a slash to your src attribute: Should be /media/js/tiny_mce/tiny_mce.js not media/js/tiny_mce/tiny_mce.js hope that helps pe On 10 Okt., 13:50, AniNair <[EMAIL PROTECTED]> wrote: > Hi, > I am trying to add tinymce to flatpages in admin using > change_from.html in admin/flatpages

Re: flatpages and 404s

2007-10-10 Thread [EMAIL PROTECTED]
Ah ha. never mind, i found the problem. I have a context processor that is run on every page to determine if a new flatpage needs to be created (we are using them in a help system). Unfortunately, this was being run on the flatpag itself and couldn't resolve the url as a view and so threw a 404.

form_for_model should return TextareaWidget

2007-10-10 Thread Thomas Guettler
Hi, How can I get a TextareaWidget with form_for_model()? I have a solution, but it is too much code. You need to create an own DB-Field. Is there a better solution? models.py: text=dbfields.TextareaField(max_length=128, rows=4, cols=40, verbose_name="Text", blank=True) dbfields.py: clas

Re: Flatpages

2007-10-10 Thread AniNair
Thank alot for the reply. I tried that, then django won't return 404 error and tinymce won't work too. django returns [10/Oct/2007 18:04:44] "GET /admin/jsi18n/ HTTP/1.1" 200 803 Thats all. No ref to /media/js/tiny_mce/tiny_mce.js Any ideas? --~--~-~--~~~---~--~

weird bug encountered during testing

2007-10-10 Thread Ronald
Hi everyone, i can use some help here. Im doing some unittesting for my app (yep i finally decided to start testing my code) and encountered a strange "bug". basically, I follow the testing documentation and try to do a get request and then test the response context using something similar to th

Re: Serving static media on the development server

2007-10-10 Thread Taylan Pince
It seems like you have two issues here: > > Page not found: > > C:\Python25\lib\site-packages\django/contrib/admin/media\stil.css First, check your settings.py to make sure your admin media folder (ADMIN_MEDIA_PREFIX) and your application's media folder don't have the same name. > this is

Re: Serving static media on the development server

2007-10-10 Thread Nikola Stjelja
Thank you Tylan your solution worked. Here is the correct url pattern (r'^assets/(.*)$', 'django.views.static.serve', {'document_root': 'c:/python_programi/cms/assets'}), I made a mistake in the regular expression, plus I've changed the directory name from media to assets. Blame it on my poor k

Re: Integrate xmpppy with django

2007-10-10 Thread Malcolm Tredinnick
On Wed, 2007-10-10 at 02:56 -0700, est wrote: > Thank you Christoph. > > Yes I have tried a independent daemon, but that's a bit complicated > for a small site. Is there a simipler way? There is no guarantee that any Django process is going to be long running or only called once -- there will be

Re: Django-tagging weirdness (noob question)

2007-10-10 Thread coffeeho
I'm using version 0.96. On Oct 9, 8:55 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 10-Oct-07, at 7:15 AM, coffeeho wrote: > > > I'm trying to implement the django-tagging app. My "links" app has a > > tags field. > > could you clarify which version of django you are using > > -- > > re

Re: form_for_model should return TextareaWidget

2007-10-10 Thread Malcolm Tredinnick
On Wed, 2007-10-10 at 14:51 +0200, Thomas Guettler wrote: > Hi, > > How can I get a TextareaWidget with form_for_model()? > > I have a solution, but it is too much code. You need to create > an own DB-Field. Right there, as you realise, you're looking the right place. You're trying to create a

Re: form_for_model should return TextareaWidget

2007-10-10 Thread Malcolm Tredinnick
On Wed, 2007-10-10 at 09:09 -0400, Malcolm Tredinnick wrote: > On Wed, 2007-10-10 at 14:51 +0200, Thomas Guettler wrote: > > Hi, > > > > How can I get a TextareaWidget with form_for_model()? > > > > I have a solution, but it is too much code. You need to create > > an own DB-Field. > > Right th

Re: TypeError in Django Admi with edit_inline

2007-10-10 Thread mrsynock
> In fact this particular problem seems to be Gone on the newforms-admin > branch, so that's another alternative for a workaround, if you (mrsynock) > are feeling adventurous enough to switch to a branch. Sadly I'm not very adventurous :-) I'll just remove unique. Thank you for answers --

Re: Totally Stumped - Authenticate and Login a user

2007-10-10 Thread Karen Tracey
On 10/10/07, JimR <[EMAIL PROTECTED]> wrote: > > Any Suggestions? The traceback from the error you are seeing might help people figure out where the problem lies. Karen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Users vs Sites

2007-10-10 Thread MarcoX
Hi to all, I have a problem on the configuration of the users in django. In my plan I have 4 sites. I would want that in the admin view I can specify for some users the possibility of being able to make determined actions for determined sites. For example, the user X can write the object Y only fo

Re: Totally Stumped - Authenticate and Login a user

2007-10-10 Thread JimR
Karen, Thanks for the reply. I looked at the traceback, but it didn't help a whole lot. It pointed me in the direction of the login function in django.contrib.auth.views. I ended up taking the authentication and login snippet from above and moving it to another view that I created, calling that

Re: Validation of dynamically generated forms

2007-10-10 Thread FrankW
If you look at f.errors or k.errors, you'll see: {'cart_item_b': [u'This field is required.'], 'cart_item_a': [u'This field is required.']} The reason for this is that the forms data looks like: {'a': '1', 'b': '2'} or {'a': 1, 'b': 2} The tricks that you're playing with changing the name of the

Re: Django-tagging weirdness (noob question)

2007-10-10 Thread James Bennett
On 10/9/07, coffeeho <[EMAIL PROTECTED]> wrote: > As a CharField, there's no problem. When I changed it to get the > sexier ManyToManyField it got weird. The tags appear and transfer > between fields (in admin view) and save in the link like they should, > but they do not appear in the tagging "ta

pattern question

2007-10-10 Thread Rob Slotboom
I want to create a pattern to get one or more occurences of, let's say, slug. /bla/ /bla/blob/ /bla/blob/blebber/ /bla/blob/blebber/and_a_lot_more etc. I get it working for up to two slugs with ('^([^/]+)/([^/]+)/$', 'page'), def page(request, *slugs): slug_list = [] for slug in slugs:

Re: pattern question

2007-10-10 Thread Malcolm Tredinnick
On Wed, 2007-10-10 at 09:25 -0700, Rob Slotboom wrote: > I want to create a pattern to get one or more occurences of, let's > say, slug. > > /bla/ > /bla/blob/ > /bla/blob/blebber/ > /bla/blob/blebber/and_a_lot_more > etc. > > I get it working for up to two slugs with > > ('^([^/]+)/([^/]+)/$',

Re: Users vs Sites

2007-10-10 Thread Chris Hoeppner
You'd need row-level permission for that, and that's outside of the admin's intended philosophy. Though, there's such a branch being developed, and I can recall seeing somewhere a django app for that purpose. Just google it and it should pop up. Also, since row-level permission is not built into

Re: pattern question

2007-10-10 Thread Rob Slotboom
Hi Malcolm, SMART Thanks Rob --~--~-~--~~~---~--~~ 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 [

problem with ChangeManipulator

2007-10-10 Thread Gio
I get this error: unsupported operand type(s) for +: 'NoneType' and 'int' referred to this snippet of code, debug informations are pointing to the line where the ChangeManipulator is: - articolo = Articolo.objects.get(codice = c) try:

Re: deseb installation in ubuntu

2007-10-10 Thread Xan
On Oct 9, 9:50 pm, Derek Anderson <[EMAIL PROTECTED]> wrote: > well, is 7.04, site-packages is here: > /usr/lib/python2.5/site-packages/ > Well, not I put deseb directory here > but your problem obviously precedes this. did you muck with you > manage.py file? No, I did not touch manage.py. m

django_root or application_root ?

2007-10-10 Thread Hugh Bien
Hi, I'm a Django newbie (just finished the tutorial on djangobook.com). I'm about to try building a blog with Django to learn some more and I was wondering if there's some sort of DJANGO_ROOT that specifies the path to the root of your project. The djangobook tipped us to use Python's __file__ fo

Re: Users vs Sites

2007-10-10 Thread MarcoX
thank you, Chris. The solution of my problem is therefore very difficult to implement. The branch of which you speak to me is still in testing. And however it seems that it cannot resolve my problem completely. Therefore not are others (simpler) solutions? MarcoX On 10 Ott, 18:31, Chris Hoeppne

Re: Help with Jinja Template

2007-10-10 Thread Brutus
Thank you Oliver for your answer. On 7 Okt., 22:19, olivier <[EMAIL PROTECTED]> wrote: > Calling a template seems a little bit overkill. Of course. But I just write some stuff to get my grip on Python again, haven't used it for a long time. I grabbed the newest version of "Learning Python" and

Validating Unique filenames and file types

2007-10-10 Thread jacoberg2
Hey, I finally got a file upload working and now i want to be sure of what people are uploading. I am trying to write some custom validators, but have a little difficulty about starting. One thing that i think should be considered in the file field, is the option 'unique'. when ever i set it equa

Re: RegexField and Admin interface

2007-10-10 Thread Tim Chase
> class Property(models.Model): > def isValidUKPostcode(self, field_data): > p = re.compile(r'^(GIR > 0AA|[A-PR-UWYZ]([0-9]{1,2}|([A-HIK-Y][0-9](| > [0-9]|[ABEHMNPRVWXY]))|[0-9][A-HJKSTUW]) [0-9][ABD-HJLNP-UW-Z]{2})$') > if not p.match(field_data['postcode']): >

Re: django_root or application_root ?

2007-10-10 Thread Malcolm Tredinnick
On Wed, 2007-10-10 at 10:19 -0700, Hugh Bien wrote: > Hi, > > > I'm a Django newbie (just finished the tutorial on djangobook.com). > I'm about to try building a blog with Django to learn some more and I > was wondering if there's some sort of DJANGO_ROOT that specifies the > path to the root of

Watch TV stations from around the World

2007-10-10 Thread jrou
Even watch the War in Iraq live and uncensored from your Laptop or PC for FREE after a small onetime installment fee. 1,000's more stations. http://jblog.ipodpsp.hop.clickbank.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Re: Validation of dynamically generated forms

2007-10-10 Thread FrankW
I would swear that I posted a response to this earlier today, but it doesn't seem to show up in the group. The problem you're having is because of the 'cart_item_' that you are adding in. It is not being added into the dictionary that is assigned to the form's data. >>> f.fields {'cart_item_a':

Re: RegexField and Admin interface

2007-10-10 Thread oliver
@ Nader : i think you got it, just give it a try! if it doesnt work django will tell you anyway ;) You define a function that gets called on validation of the field is the very abstract view of it as i understand it. On Oct 10, 6:34 pm, Tim Chase <[EMAIL PROTECTED]> wrote: > > class Property(mo

another 6 hour code jam - tagmindr.com

2007-10-10 Thread anders conbere
Just a quick announcement, though created without any for knowledge of djangogigs, a group of us got together last Saturday with the proposal of creating a fully functional web app from idea to production in 6 hours. We were given the seed idea of an app that would help you remember things you ha

dict objects are unhashable

2007-10-10 Thread kevinski
Can someone help me with the following error. It occurs when I restart Apache and try to load the Admin page. When I refresh, the Admin page comes up, however the Documentation, Change Password, and Log Out links call http://localhost/admin/. I reinstalled Django, but it did not help. TypeError

Re: dict objects are unhashable

2007-10-10 Thread Jeremy Dunck
On 10/10/07, kevinski <[EMAIL PROTECTED]> wrote: > > Can someone help me with the following error. It occurs when I restart > Apache and try to load the Admin page. When I refresh, the Admin page > comes up, however the Documentation, Change Password, and Log Out > links call http://localhost/admi

Re: dict objects are unhashable

2007-10-10 Thread Jeremy Dunck
On 10/10/07, kevinski <[EMAIL PROTECTED]> wrote: > > Can someone help me with the following error. It occurs when I restart > Apache and try to load the Admin page. When I refresh, the Admin page > comes up, however the Documentation, Change Password, and Log Out > links call http://localhost/admin

Better solutions for my views?

2007-10-10 Thread Bernd
Hello, I'm working on a website with Django and I'm new to django, python and webdevelopment. I use the latest django svn-version. I have a few pages/templates and they worked. But I think about to simplify the source-code with the right use of django and python. I think my views are complicated r

Re: dict objects are unhashable

2007-10-10 Thread kevinski
Honestly, I do not know what that means. How do I check this? On Oct 10, 4:41 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > On 10/10/07, kevinski <[EMAIL PROTECTED]> wrote: > > > > > Can someone help me with the following error. It occurs when I restart > > Apache and try to load the Admin page

Re: dict objects are unhashable

2007-10-10 Thread kevinski
# C:\Python25\lib\site-packages\django\core\urlresolvers.py in reverse 274. return self._resolve_special('500') 275. 276. def reverse(self, lookup_view, *args, **kwargs): 277. try: 278. lookup_view = get_callable(lookup_view, True) 279. except (ImportError, AttributeError): 280. raise NoR

Re: Better solutions for my views?

2007-10-10 Thread Bernd
Question 1 is solved. the brackets are wrong. right way is: {% for event in events %} event.get_thumbnail_url {% endfor %} I would be appreciate if there would be any ideas to my second question Bernd On Wed, 2007-10-10 at 23:46 +0200, Bernd wrote: > Hello, > > I'm working on a w

Re: dict objects are unhashable

2007-10-10 Thread Jeremy Dunck
On 10/10/07, kevinski <[EMAIL PROTECTED]> wrote: > > Honestly, I do not know what that means. How do I check this? Apologies-- I assumed that the problem had something to do with unicode and localization. http://www.djangoproject.com/documentation/i18n/#if-you-don-t-need-internationalization-in-

Question 1 is solved. the brackets are wrong. right way is: {% for event in events %} event.get_thumbnail_url {% endfor %} I would be appreciate if there would be any ideas to my second question Bernd

2007-10-10 Thread Bernd
Question 1 is solved. the brackets are wrong. right way is: {% for event in events %} event.get_thumbnail_url {% endfor %} I would be appreciate if there would be any ideas to my second question Bernd On Wed, 2007-10-10 at 23:46 +0200, Bernd wrote: > Hello, > > I'm working on a web

Collapsing Template blocks

2007-10-10 Thread handsome greg
Just a quick question about templates: I'm coming from a templating system (html_template_sigma - ouch, I know) where you are able to hide and show blocks like tpl.hideBlock('block_name'). ANY clue how I might go about mimicking this behavior until we have a chance to revamp how our templates are

filtering by null related object

2007-10-10 Thread Casey T. Deccio
Given the following models: class ModelA(models.Model): name = models.CharField(max_length=10) class ModelB(models.Model): a = models.ForeignKey(ModelA) name = models.CharField(max_length=10) I'd like to perform a query for ModelA objects that have no ModelB objects referring to them. Is

Re: filtering by null related object

2007-10-10 Thread Benjamin Slavin
Hi Casey, You may want to take a look at ticket #1050. http://code.djangoproject.com/ticket/1050 - Ben On 10/10/07, Casey T. Deccio <[EMAIL PROTECTED]> wrote: > > Given the following models: > > class ModelA(models.Model): > name = models.CharField(max_length=10) > > class ModelB(models.Mode

Has any considered integrating openrpg client to django

2007-10-10 Thread bmccrayusa
Consider community and the things people do with python. Would it be natural to move Game like coding to Django --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: problem with ChangeManipulator

2007-10-10 Thread [EMAIL PROTECTED]
Are you sure that articolo is not None or that c is not an int or None? On Oct 10, 12:48 pm, Gio <[EMAIL PROTECTED]> wrote: > I get this error: > unsupported operand type(s) for +: 'NoneType' and 'int' > > referred to this snippet of code, debug informations are pointing to > the line where the C

Newforms Field Limit Question

2007-10-10 Thread machineghost
I recently attempted to implement a very large form using the newforms library, and I discovered that if a form contains more than 45 fields it generates a "too many values to unpack" error when you try to render it in a template. Does anyone know if this is deliberate (either because of some Pyt

Re: Better solutions for my views?

2007-10-10 Thread John M
for your second question, i think you could use the ifchanged template directive on a list of all your media information. Similar to what you're doing, but you don't have to build a dictionary, the templates will print when the field on ifchanged changes. something like that I think. J On Oct

How to delete a table?

2007-10-10 Thread Greg
Hello, Simple question, I have a database table called Orders. I want to delete this table so that when I do 'python manage.py syncdb' the table will get recreated. I want to make some modifications to the columns in the table and I can't seem to do the with SQLite. I don't want to delete the

Re: How to delete a table?

2007-10-10 Thread Jeremy Dunck
On 10/11/07, Greg <[EMAIL PROTECTED]> wrote: ... > Do I need to do this with my sqliteman software Yes. > or ca I do something > like Orders.delete() in my djano command prompt. No. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

TinyMCE in admin

2007-10-10 Thread AniNair
I am trying to follow the method in http://code.djangoproject.com/wiki/AddWYSIWYGEditor . I still can't get django find the files textareas.js and tiny_mce.js. it's returning 404. Please help. Thank you --~--~-~--~~~---~--~~ You received this message because you

Re: TinyMCE in admin

2007-10-10 Thread Jeremy Dunck
On 10/11/07, AniNair <[EMAIL PROTECTED]> wrote: > > I am trying to follow the method in > http://code.djangoproject.com/wiki/AddWYSIWYGEditor > > . I still can't get django find the files textareas.js and > tiny_mce.js. it's returning 404. Please help. Thank you > What's your admin URL and what

Re: TinyMCE in admin

2007-10-10 Thread AniNair
My admin url ishttp://localhost:8000/admin/flatpages/flatpage/1/ The url being requested is [11/Oct/2007 10:21:35] "GET /admin/flatpages/flatpage/1/media/js/ tiny_mce/tiny_m ce.js HTTP/1.1" 404 3644 [11/Oct/2007 10:21:35] "GET /admin/flatpages/flatpage/1/media/js/ tiny_mce/textar eas.js H

Re: TinyMCE in admin

2007-10-10 Thread Jeremy Dunck
On 10/11/07, AniNair <[EMAIL PROTECTED]> wrote: > > My admin url ishttp://localhost:8000/admin/flatpages/flatpage/1/ > The url being requested is > [11/Oct/2007 10:21:35] "GET /admin/flatpages/flatpage/1/media/js/ > tiny_mce/tiny_m > ce.js HTTP/1.1" 404 3644 > [11/Oct/2007 10:21:35] "GET

How to allow a ForeignKey field to be null

2007-10-10 Thread Greg
Hello, I have the following field in my Orders class delivery_method = models.ForeignKey(Delivery) I want to be able to add a Order record and not specify a Delivery option when the order is initially created. I've tried delivery_method = models.ForeignKey(Delivery, null=True) and delivery_met

Re: How to allow a ForeignKey field to be null

2007-10-10 Thread Jeremy Dunck
On 10/11/07, Greg <[EMAIL PROTECTED]> wrote: > > Hello, > I have the following field in my Orders class > > delivery_method = models.ForeignKey(Delivery) > > I want to be able to add a Order record and not specify a Delivery > option when the order is initially created. > > I've tried > > delivery

Re: TinyMCE in admin

2007-10-10 Thread AniNair
I am trying to have tinyMCE for flatpages... Should I be using a model for that? --~--~-~--~~~---~--~~ 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.c

Re: TinyMCE in admin

2007-10-10 Thread Jeremy Dunck
On 10/11/07, AniNair <[EMAIL PROTECTED]> wrote: > > I am trying to have tinyMCE for flatpages... Should I be using a model > for that? Ah, sorry, I missed that. Did you follow these steps? http://code.djangoproject.com/wiki/AddWYSIWYGEditor#UsingTinyMCEwithflatpages If so, you've just got your

Re: problem with ChangeManipulator

2007-10-10 Thread Gio
if I do: articolo = Articolo.objects.get(codice = c) print articolo.id everything goes right, it prints the right number I'm on Django 0.96, btw On 11 Ott, 05:38, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wro

Re: form_for_model should return TextareaWidget

2007-10-10 Thread Thomas Guettler
Am Mittwoch, 10. Oktober 2007 15:09 schrieb Malcolm Tredinnick: > On Wed, 2007-10-10 at 14:51 +0200, Thomas Guettler wrote: > > Hi, > > > > How can I get a TextareaWidget with form_for_model()? > > > > I have a solution, but it is too much code. You need to create > > an own DB-Field. > What you w