Re: actions & triggers

2009-11-12 Thread creeper
Yes Kenneth, You are right. That is what I'm looking for. Thank you for the direction. On Nov 13, 10:37 am, Kenneth Gonsalves wrote: > On Friday 13 Nov 2009 10:59:45 am creeper wrote:> I'm new to Django . As well > versed with Drupal i would like to know > > actions &

Re: Help a Rails refugee - how to do site specific layouts?

2009-11-12 Thread Ismail Dhorat
Hey man, your question is not entirely clear but: If you dont want to repeat yourself, you typically would use extend tags as everyone has said. These templates can be as deep as you want it, (not sure about the performance impact) but you could have and i have used this Base Template

Re: actions & triggers

2009-11-12 Thread Kenneth Gonsalves
On Friday 13 Nov 2009 10:59:45 am creeper wrote: > I'm new to Django . As well versed with Drupal i would like to know > actions & triggers type feature in Dj. May be some of you familiar > with such type concept in Dj ? > drupal is a cms, django is a framework. Maybe you looking for something

actions & triggers

2009-11-12 Thread creeper
Hi All, I'm new to Django . As well versed with Drupal i would like to know actions & triggers type feature in Dj. May be some of you familiar with such type concept in Dj ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Help a Rails refugee - how to do site specific layouts?

2009-11-12 Thread Andy Mckay
On 09-11-12 10:35 AM, Todd Blanchard wrote: > I like the rails mechanism for specifying page layouts (boilerplate > template that surrounds the currently rendered view). > > Its simple and obvious. Use the "extends" tag. If you want rails style boilerplate, there's always "include"

Re: how to save a forms.ModelForm with extra fields?

2009-11-12 Thread Andy Mckay
On 09-11-12 2:33 PM, jul wrote: > I've got the Rating model and the AddRestaurantForm shown below. In > order to add a rating when submitting a new restaurant, I added an > extra field to AddRestaurantForm. Can I do that? If I can, how can I > save separately the Restaurant instance and the rating

Re: Django Admin interface crashes with.

2009-11-12 Thread Matt Schinckel
On Nov 13, 1:40 pm, Rick Caudill wrote: > I do have non-ascii data in my database.  That is allowed, right??? Yeah, in general. What appears to be happening here (and Karen is right, we need more to go on), but data that is being loaded into a DecimalField contains non-ascii

Re: Django Admin interface crashes with.

2009-11-12 Thread Karen Tracey
On Thu, Nov 12, 2009 at 10:40 PM, Rick Caudill wrote: > I do have non-ascii data in my database. That is allowed, right??? > > Certainly. Perhaps if you gave a few more clues someone could help. What are you doing in the admin interface when the exception is raised? If the

Re: Django Admin interface crashes with.

2009-11-12 Thread Rick Caudill
I do have non-ascii data in my database. That is allowed, right??? On Thu, Nov 12, 2009 at 6:55 PM, Matt Schinckel wrote: > On Nov 13, 7:06 am, Rick Caudill wrote: > > Hi Everyone, > > > > This is my first time posting but I have been using Django

George Lund is out of the office.

2009-11-12 Thread glund
I will be out of the office starting 12/11/2009 and will not return until 17/11/2009. For urgent enquiries, please telephone extension 606. For internal GMN or GNPD support, please fill out a request via http://trips.mintel.co.uk/ . http://www.mintel.com providing insight + impact Follow

Re: Making the case for Django (vs. Drupal)

2009-11-12 Thread Kenneth Gonsalves
On Friday 13 Nov 2009 4:26:44 am scot.hac...@gmail.com wrote: > Thanks everyone for the additional comments. Draft #2 is up now, with > substantial changes and additions based on your feedback. > > Yes, I'd like to get feedback from some Drupal people, but again want > to focus on devs who have

Re: Django Admin interface crashes with.

2009-11-12 Thread Matt Schinckel
On Nov 13, 7:06 am, Rick Caudill wrote: > Hi Everyone, > > This is my first time posting but I have been using Django for about a > year now and love it.  I am having one problem that I can't solve > though and it is taking too long so I thought I would ask and see if > someone

question about facebook connect and django voting

2009-11-12 Thread uno...@gmail.com
I'm trying to find the most efficient way to accomplish the below: I have a list of users (facebook friends) for a user - these users are objects of the Django User model: [friend1,friend2, friend3..] I use the django voting app where users can vote on an item. the resulting page has 10 items

Apache2 installation

2009-11-12 Thread Zeynel
Hello, I've been trying to port my app to apache2 server from the django development server. After trying all day, I now see the admin page but I don't see my app. Hosting co is not helping because they say this is "pure django." Is there someone familiar with this process and could you point me

Re: Making the case for Django (vs. Drupal)

2009-11-12 Thread scot.hac...@gmail.com
Thanks everyone for the additional comments. Draft #2 is up now, with substantial changes and additions based on your feedback. Yes, I'd like to get feedback from some Drupal people, but again want to focus on devs who have worked in *both* systems. If you know of anyone who has, feel free to

Django Admin interface crashes with.

2009-11-12 Thread Rick Caudill
Hi Everyone, This is my first time posting but I have been using Django for about a year now and love it. I am having one problem that I can't solve though and it is taking too long so I thought I would ask and see if someone can help me. So I have a Admin interface that is crashing. The error

how to save a forms.ModelForm with extra fields?

2009-11-12 Thread jul
Hi I've got the Rating model and the AddRestaurantForm shown below. In order to add a rating when submitting a new restaurant, I added an extra field to AddRestaurantForm. Can I do that? If I can, how can I save separately the Restaurant instance and the rating instance (I'll get the user from

Re: Help a Rails refugee - how to do site specific layouts?

2009-11-12 Thread Bill Freeman
I haven't done rails, but my boilerplate is in a template that is "extended" by the page specific templates. In fact, I have multiple levels: section specific boilerplate templates that extend a site wide template, with the section specific templates being extended by the page (type) specific

Re: Help a newbie with his simple foreignkey problem?

2009-11-12 Thread Cody Django
Sorry - it should read: b = Book.objects.get(id=1) #new book request.user.get_profile().shelf1.add(b) #add book to shelf1 request.user.get_profile().shelf1.remove(b)#remove from shelf1 request.user.get_profile().shelf2.add(b) #add to shelf2 I

Re: Changing order in which inlines are displayed in Admin

2009-11-12 Thread joshuakarjala
checkout - http://www.djangosnippets.org/snippets/1489/ I have used this in one project successfully - if you want drag'n'drop Otherwise just add: class Meta: ordering = ('order',) to you model - and the admin should adhere to the "order" On Nov 12, 3:16 pm, Joseph Wakeling

Changing order in which inlines are displayed in Admin

2009-11-12 Thread Joseph Wakeling
Hello all, A little query I haven't been able to find an answer to in docs or through Google. I've got a little app on my site to create menus -- it's adapted (updated to latest Django) from the menu app described at rossp.org. Anyway, here are the classes defined in admin.py:

Re: QuerySet Question

2009-11-12 Thread Tomasz Zieliński
On 12 Lis, 16:12, Chris wrote: > Is there a way of getting a model function to access user details so > that I can do a simple "if track.owned" in the template? Is there a > better solution to doing it in the view? Is there something I have not > thought of? What

Re: Increment a value in a database table field

2009-11-12 Thread scot.hac...@gmail.com
On Nov 12, 7:51 am, Denis Bahati wrote: > Hi All, > > I have a field with an integer value which needs to be incremented > every time any user updates its status within a week. If that week has > passed it should insert a new row. Now i was trying to figure out but > didn't

Dynamic tables?

2009-11-12 Thread joshuakarjala
Hi, I'm trying to build a small app to create size charts like: http://www.steepplanet.com/prodimages/Giordana/size_chart.jpg So each size chart need to have it's own number of necessary columns and rows. And each size chart can be assigned to any amount of brands. So my models.py looks like

Re: CSV to JSON snippet

2009-11-12 Thread Zeynel
Hi, my project is in C:/sw1/wkw1 models are in C:/sw1/wkw1/models.py Model name is Lawyer. So, in the python shell I import simplejson with from django.utils import simplejson then I enter csv2json.py sw.csv wkw1.Lawyer and I get the error >>> from django.utils import simplejson >>>

Re: Help a newbie with his simple foreignkey problem?

2009-11-12 Thread R. Gorman
> b = Book.objects.get(id=1)  #new book > request.user.get_profile().shelf1.add(b)  #add book to shelf1 > request.user.shelf1.remove(b)     #remove from shelf1 > request.user.shelf2.add(b)      #add to shelf2 Looks like you're trying to add the foreignkey to the User model instead of the

Re: CSV to JSON snippet

2009-11-12 Thread R. Gorman
What is the error message you are receiving? R. -- 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

Re: ModelForm usage

2009-11-12 Thread pjrhar...@gmail.com
> - first try for empty record, expecting an empty Project-object to be created > from the form automatically: > projectForm = forms.ProjectForm() > projectForm.save() > => result: 'ProjectForm' object has no attribute 'cleaned_data' You need to run the clean method on the form to make sure the

CSV to JSON snippet

2009-11-12 Thread Zeynel
Hello, I am trying to use this CSV to JSon Fixture snippet but I couldn't make it work. http://www.djangosnippets.org/snippets/1680/ Can anyone help me to run this snippet. I copy the instruction below. Thank you. -- The instructions for

Help a Rails refugee - how to do site specific layouts?

2009-11-12 Thread Todd Blanchard
I like the rails mechanism for specifying page layouts (boilerplate template that surrounds the currently rendered view). Its simple and obvious. I cannot, having read most of two books on django now along with the website stuff, figure out how to do the same thing in django. Also, I'm

Help a newbie with his simple foreignkey problem?

2009-11-12 Thread Cody Django
Hi - I'm having a hard time wrapping my head around one-to-many relations. I'd like to be able to do this in a view: b = Book.objects.get(id=1) #new book request.user.get_profile().shelf1.add(b) #add book to shelf1 request.user.shelf1.remove(b) #remove from shelf1

how to pass a session variable into a test request?

2009-11-12 Thread Phlip
Djangoes: This is not working (1.0.1 and 1.1.1): uri = urlresolvers.reverse('basket') self.client.session['cart'] = self.cart.pk response = self.client.post(uri) The Google traffic on this topic is a confusing mishmash of workarounds. (Take out the session object and

Re: wsgi config

2009-11-12 Thread Angel Cruz
BTW, Aliases are usually one word and so I would have aliased your site media as: Alias /site_media/ "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/ site_media/" On Thu, Nov 12, 2009 at 8:49 AM, Angel Cruz wrote: > Does it look like this now? This should

Re: Model Theory 101 - Video Sharing App

2009-11-12 Thread Fred Chevitarese
Hello ... I've made one app as you like... http://code.google.com/p/django-youtube-syncronizer/ ;) http://chevitarese.wordpress.com Fred Chevitarese - GNU/Linux 2009/8/28 thornomad > > Hi thanks for the response - I had looked at oembed, but it didn't > seem like it

Re: wsgi config

2009-11-12 Thread Angel Cruz
Does it look like this now? This should work: Alias /media/ "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/media/" Order allow,deny Allow from all Alias /peergw/site_media/ "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/site_media/" Order allow,deny Allow

Can a model generate custom SQL when loading/saving a field?

2009-11-12 Thread Tony Czeh
I'm running into a bit of a problem with Django's models. I have a VARCHAR field that needs to be stored with the content AES_ENCRYPT then HEXed (done on the MySQL server). What I'd like to have happen is for the Django model to generate "AES_DECRYPT(UNHEX(field), salt)" when the field is loded

Re: How to use French accent on django template?

2009-11-12 Thread Tom Evans
On Thu, Nov 12, 2009 at 4:30 PM, rebus_ wrote: > 2009/11/12 NMarcu : > > Hello all, > > > > How to use French accent on django template? It's very strange. in > > one template is working very well, but in other(templatetag) not, I > > got this

Re: Imports, works from directory but not from file

2009-11-12 Thread Bill Freeman
On Thu, Nov 12, 2009 at 10:33 AM, andreas schmid wrote: >> > im on a unix system and i can import it on the django shell but it makes > troubles when running the django server which doesnt make sense It may be that it won't be recognized as an app because the app directory

Re: How to use French accent on django template?

2009-11-12 Thread rebus_
2009/11/12 NMarcu : > Hello all, > >   How to use French accent on django template? It's very strange. in > one template is working very well, but in other(templatetag) not, I > got this error: > > TemplateSyntaxError at /operators/ajax > > Caught an exception while

Re: form with loop over fields?

2009-11-12 Thread Nick Arnett
On Wed, Nov 11, 2009 at 11:28 PM, andreas schmid wrote: > > > ok this is fine for the form representation but how should i extend my > model to define the field i am going to multiply 12 times a year for x > years? (actually im using generic create_update view to get the

How to use French accent on django template?

2009-11-12 Thread NMarcu
Hello all, How to use French accent on django template? It's very strange. in one template is working very well, but in other(templatetag) not, I got this error: TemplateSyntaxError at /operators/ajax Caught an exception while rendering: 'ascii' codec can't encode character u'\xe9' in

Re: Imports, works from directory but not from file

2009-11-12 Thread rebus_
I am not sure if i got the problem right, but this is what i think you could do. If you want to keep your views in directory: app/ views/ __init__.py <- This is where you keep your views so you don't even need to change your urls.py or anthing something_else.py <- something else

Increment a value in a database table field

2009-11-12 Thread Denis Bahati
Hi All, I have a field with an integer value which needs to be incremented every time any user updates its status within a week. If that week has passed it should insert a new row. Now i was trying to figure out but didn't get any concept on how to go through. Please any idea? -- You received

Re: How periodically import content to Django?

2009-11-12 Thread R. Gorman
If the file can be parsed you could setup a script to read the file and use the get_or_create query to add new entries. R. On Nov 12, 10:31 am, bowlby wrote: > Is there a way to periodically import content to Django by means of > uploading a file of some sort? > > The use

Re: Imports, works from directory but not from file

2009-11-12 Thread andreas schmid
Bill Freeman wrote: > If that wasn't a typo, I suspect that you're going to have trouble > with having a directory > named "views.py". yes it was a typo... my dir is called 'views' > I don't know how you import anything from it unless > it is directly on > your path. > > When you say "my app is

How periodically import content to Django?

2009-11-12 Thread bowlby
Is there a way to periodically import content to Django by means of uploading a file of some sort? The use case is this: There is a list of institutions. Each institution has a couple of programmes. Once or twice a year we get a file with all the programmes per institution which we want to use in

Re: Imports, works from directory but not from file

2009-11-12 Thread Bill Freeman
If that wasn't a typo, I suspect that you're going to have trouble with having a directory named "views.py". I don't know how you import anything from it unless it is directly on your path. When you say "my app is in the pythonpath of the environment": 1. Which directory is in the python

QuerySet Question

2009-11-12 Thread Chris
Hi all, I am new to Django and I am having a little trouble. The situation: I am setting up a music selling website (similar to iTunes) for a uni project. There are Tracks, Albums and Artists as well as users via Django auth. A user can own a track. This is accomplished with a many to many field

Re: forms.ChoiceField and empty values

2009-11-12 Thread rebus_
2009/11/12 Monika Sulik : > As I haven't had any replies so far, I'll add some more information... > > The empty label appears if I redefine the form like this: > > class CompetitionSearchForm(forms.ModelForm): >    class Meta: >        model = Competition >        fields =

Re: Model validation

2009-11-12 Thread rebus_
2009/11/12 Dirk Uys : > On Thu, Nov 12, 2009 at 2:23 PM, rebus_ wrote: > >> >> You can add custom clean methods in your form: >> >> class Event (models.Model): >>    start_date = models.DateField() >>    end_date = models.DateField() >> >>   def

Re: Switching a Models Field Class at Runtime

2009-11-12 Thread Sean Brant
Yeah that would work. I'd like to avoid that because every Item will need its child content, so you would have to always use a join (which are slow). One more thought is it possible to has multiple models that all save to the same table? I only really need the helpful Image and File fields for

Re: forms.ChoiceField and empty values

2009-11-12 Thread Monika Sulik
As I haven't had any replies so far, I'll add some more information... The empty label appears if I redefine the form like this: class CompetitionSearchForm(forms.ModelForm): class Meta: model = Competition fields = ('name','type') It disappears again if I make the changes I

Re: forms.ChoiceField and empty values

2009-11-12 Thread Monika Sulik
As I haven't had any replies so far, I'll add some more information... The empty label appears if I redefine the form like this: class CompetitionSearchForm(forms.ModelForm): class Meta: model = Competition fields = ('name','type') It disappears again if I make the changes I

Re: Model validation

2009-11-12 Thread Dirk Uys
On Thu, Nov 12, 2009 at 2:23 PM, rebus_ wrote: > You can add custom clean methods in your form: > > class Event (models.Model): >start_date = models.DateField() >end_date = models.DateField() > >def clean(self): > start = self.cleaned_data.get('start_date',

Re: URLs and masking of private objects

2009-11-12 Thread Steinar Rune Eriksen
Thanks for your suggestions. As said, I would surely have underlying security to actually protect the private data at the object level. My questions was simply to make the URLs look less object like (in order to make naiv users feel more safe as well). Using slugs/GUIDs seems to be a way forward.

Re: Making the case for Django (vs. Drupal)

2009-11-12 Thread Ray
On Nov 12, 11:16 am, shacker wrote: > I just wanted to thank everyone for their excellent contributions to > this thread. Sorry I got side-tracked for a while. I've just put up a > pretty complete draft of a post on this topic, written with decision > makers (managers,

Re: View using 2 models

2009-11-12 Thread EmileZola
Well, I missed the point apparently. I was unaware django created reverse attribute for ForeignKey. Thanks ! On Nov 12, 5:44 am, bruno desthuilliers wrote: > On 12 nov, 07:07, EmileZola wrote: > > > > > Alright, I'm pretty new to Django and

Re: URLs and masking of private objects

2009-11-12 Thread Steinar Rune Eriksen
Thanks for the feedback. Yes I do implement object level security (so not security by obscurity), but just wanted to make it less object ID lookalike to the naive user (who may feel that the system is not secure). Slugs with GUID seems like a good option. Steinar On Nov 12, 12:38 pm, Mike

Re: Can I change the restriction on "username" without breaking anything?

2009-11-12 Thread Richard E. Cooke
Thanks. Sorry. I have got to stop posting when I'm tired... For punishment, I read the Wikipedia article on the "@" character: http://en.wikipedia.org/wiki/@ No, I did not do a google search because I ass-umed the truly relevant info would be in this list. really. The first Google hit is a

Re: Switching a Models Field Class at Runtime

2009-11-12 Thread Mike Ramirez
On Thursday 12 November 2009 06:05:00 Sean Brant wrote: > Let me start out by saying this feels a little over engineered but I > wanted to see what people thought anyways. > > I would like to create a list similar to a Facebook wall. You can post > stuff and attach content to the post. In the

Switching a Models Field Class at Runtime

2009-11-12 Thread Sean Brant
Let me start out by saying this feels a little over engineered but I wanted to see what people thought anyways. I would like to create a list similar to a Facebook wall. You can post stuff and attach content to the post. In the past I have create a table with properties for all content formats

Re: Template conceptual help

2009-11-12 Thread Maksymus007
> Yeps, I just knew I had already seens something like that > somewhere !-) > > Ok, problem solved then. yep :) > >> Your solution is way cool, but again, its violates DRY - >> additional code in every view (can be probably ommited by decorators, > > Indeed. > >> but still, the same decorator

Re: Template conceptual help

2009-11-12 Thread bruno desthuilliers
On 12 nov, 14:01, Maksymus007 wrote: (snip) > Well, yes, messages,html can be split into several files and then > app_messages.html can include them in order. But then every > app_messages.html must include them, which, in fact, is just > copy-paste messages.html with

Re: Making the case for Django (vs. Drupal)

2009-11-12 Thread Nick Lo
Hi Scot > I just wanted to thank everyone for their excellent contributions to > this thread. Sorry I got side-tracked for a while. I've just put up a > pretty complete draft of a post on this topic, written with decision > makers (managers, supervisors) in mind. It's still probably somewhat >

Re: AssertionError: Response didn't redirect as expected: Response code was 200 (expected 302)

2009-11-12 Thread Eesti Mate
You hit that nail square on the head :-) the fixture was broken. Thank you, Preston! E. On Wed, 2009-11-11 at 18:07 -0800, Preston Holmes wrote: > Does your fixture result in a valid form? > > if the form.is_valid() line doesn't pass, then you would get a 200 > from the render to response... >

Re: Template conceptual help

2009-11-12 Thread Maksymus007
On Thu, Nov 12, 2009 at 1:31 PM, bruno desthuilliers wrote: > On 12 nov, 12:16, Maksymus007 wrote: >> I have some problem with templates and separating templates blocks. >> >> There is a list of messages. Some properties are common, some are

Re: Template conceptual help

2009-11-12 Thread bruno desthuilliers
On 12 nov, 12:16, Maksymus007 wrote: > I have some problem with templates and separating templates blocks. > > There is a list of messages. Some properties are common, some are > application specific. > Properties are just html columns :) > > I got following templates >

Re: Model validation

2009-11-12 Thread rebus_
2009/11/12 Dirk Uys : > I have a model with a from and to date: > > class Event (models.Model): >     start_date = models.DateField() >     end_date = models.DateField() > > In order to ensure start_date is always before end_date i can think of 3 > options: > > 1. Use form

Re: Prevent brute-force password attacks?

2009-11-12 Thread rebus_
How about using some system that after few failed logins gives some CAPTCHA to solve? I think it's ok way to get rid of some bots. I think it could be easily done by setting up custom login view. -- You received this message because you are subscribed to the Google Groups "Django users" group.

Model validation

2009-11-12 Thread Dirk Uys
I have a model with a from and to date: class Event (models.Model): start_date = models.DateField() end_date = models.DateField() In order to ensure start_date is always before end_date i can think of 3 options: 1. Use form validation iow in the clean method of an inherited form 2. Use

Re: URLs and masking of private objects

2009-11-12 Thread Mike Ramirez
On Thursday 12 November 2009 02:48:35 Mike Ramirez wrote: > urlpatterns = patterns('', url(r'^portfolios/(?P[\w-]+$', > 'portfolio.views.load_details', name='details'), > Typo fixes: urlpatterns += patterns('', url(r'^portfolios/(?P[\w-]+)$', 'portfolio.views.load_details', name='details'), )

Re: Making the case for Django (vs. Drupal)

2009-11-12 Thread bruno desthuilliers
On 12 nov, 01:16, shacker wrote: > I've just put up a > pretty complete draft of a post on this topic, written with decision > makers (managers, supervisors) in mind. It's still probably somewhat > technical for that group, but that's the nature of the topic. > >

Re: awkward backward relationships

2009-11-12 Thread Viktor
Since yesterday, I've put together a small testapp to better present my problem. I have the following models.py file: from django.db import models class AbstractTaskOrProject(models.Model): parent = models.ForeignKey('AbstractProject', null=True) class Meta: abstract = True class

Template conceptual help

2009-11-12 Thread Maksymus007
I have some problem with templates and separating templates blocks. There is a list of messages. Some properties are common, some are application specific. Properties are just html columns :) I got following templates main.html -> basic "frame", which consists of common html, headers, scripts

Re: Uploading and using images in a database application

2009-11-12 Thread bruno desthuilliers
On 11 nov, 08:36, derek wrote: > Bruno > > All the help is much appreciated - its working now, Great. Good to know this solved your problem :-) > and I need to > spend time to understand all the changes. Most of them are about avoiding error prone repetitions - IOW,

Re: URLs and masking of private objects

2009-11-12 Thread Flávio Amieiro
On Thu, Nov 12, 2009 at 7:51 AM, Steinar Rune Eriksen wrote: > > (r'^portfolio/(\d{2})/$', 'portfolios.views.load_details'), > /portfolio/3/ > > In template the URL would be {% url portfolios.views.load_details > portfolio.pk %} > > Let's say the logged in user has

Re: URLs and masking of private objects

2009-11-12 Thread Daniel Roseman
On Nov 12, 9:51 am, Steinar Rune Eriksen wrote: > I have not used Django in external environments before, just Intranet > applications. > > I am wondering how to mask URLs so that object IDs are not shown? > Obviously one would create security on the server to check if a

Re: URLs and masking of private objects

2009-11-12 Thread bruno desthuilliers
On 12 nov, 10:51, Steinar Rune Eriksen wrote: > I have not used Django in external environments before, just Intranet > applications. > > I am wondering how to mask URLs so that object IDs are not shown? > Obviously one would create security on the server to check if a user

Re: form with loop over fields?

2009-11-12 Thread David De La Harpe Golden
andreas schmid wrote: > the values of the form should be stored and re-edited when necessary. > that would be only a part of the whole thing, i implemented the rest of > the form through a model and generating the form trough it. > Re the "a model" singular: Conceptually, you're defining a

Re: URLs and masking of private objects

2009-11-12 Thread Mike Ramirez
On Thursday 12 November 2009 01:51:26 Steinar Rune Eriksen wrote: > I have not used Django in external environments before, just Intranet > applications. > > I am wondering how to mask URLs so that object IDs are not shown? > Obviously one would create security on the server to check if a user >

Re: View using 2 models

2009-11-12 Thread bruno desthuilliers
On 12 nov, 07:07, EmileZola wrote: > Alright, I'm pretty new to Django and I've got this problem I can't > quite solve. > > I basically have two models, wich I use to put blog articles into > categories. One is a Category and the other is a Subject. So in my > categories I

Re: Accessing 'bytea' field using django.

2009-11-12 Thread ds99
Thanks all for your comments and suggestions. I will definitely take them into account. -ds99 -- 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,

Re: View using 2 models

2009-11-12 Thread Dirk Uys
On Thu, Nov 12, 2009 at 8:07 AM, EmileZola wrote: > Alright, I'm pretty new to Django and I've got this problem I can't > quite solve. > > I basically have two models, wich I use to put blog articles into > categories. One is a Category and the other is a Subject. So in my >

URLs and masking of private objects

2009-11-12 Thread Steinar Rune Eriksen
I have not used Django in external environments before, just Intranet applications. I am wondering how to mask URLs so that object IDs are not shown? Obviously one would create security on the server to check if a user has access to view a particular object, but the fact that IDs are siaplayed in

Re: admin.site.register() - help

2009-11-12 Thread neridaj
Thanks Matt, that did it. On Nov 11, 11:07 pm, Matt Schinckel wrote: > On Nov 12, 4:18 pm, neridaj wrote: > > > since FlatPage is already registered how do I properly register an > > InlineModelAdmin object? > > You can use: > >

Author Django Book-Packt Publishing.

2009-11-12 Thread Kshipra Singh
Hi All, I represent Packt Publishing, the publishers of computer related books. We are planning to publish a new book on Django, titled Django Ajax and are currently inviting potential authors to write it. We pay a royalty of 16% and an advance against it. The ideal candidate will be someone

View using 2 models

2009-11-12 Thread EmileZola
Alright, I'm pretty new to Django and I've got this problem I can't quite solve. I basically have two models, wich I use to put blog articles into categories. One is a Category and the other is a Subject. So in my categories I might have ('Programming', 'Music', 'Essays') and my subjects are