Re: dashboard for user profile

2012-07-13 Thread Mario Gudelj
This should be really easy. Google something like "extending user profile" with user being a foreign key to your model. The you can grab the use from the request in you view and get the info from db and just spit it out on the screen. M On Jul 13, 2012 11:58 AM, "psychok7" wrote: > i there, > i

Re: use same database across various applications in a django project?

2012-07-13 Thread Burhan
Hi, Thanks for the relpy, i set db_name under as meta information, now i am getting this error django.db.utils.DatabaseError: table "mytable_author" already exists this is because, for the app1 python syncdb has already created this table, now it attempts to create the same tables for app2. i

Re: use same database across various applications in a django project?

2012-07-13 Thread Сергей Фурсов
Why do you define this model in app1 and in app2? Define it only in app1 and import it in app2 where you need (models, views, etc) 2012/7/13 Burhan > Hi, > > Thanks for the relpy, i set db_name under as meta information, now i am > getting this error > > django.db.utils.DatabaseError: table "myt

Re: use same database across various applications in a django project?

2012-07-13 Thread Burhan
sounds like a great idea! I never thought of this. thanks again :) On Friday, July 13, 2012 12:33:30 AM UTC+2, Burhan wrote: > > Hi, > > I have a project which has two applications, app_1 and app_2, when I run > "python manage.py syncdb" it creates tables defined in model.py (same for > both app

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-13 Thread Cal Leeming [Simplicity Media Ltd]
Hi Javier, Sadly, the original is not available due to bad sound quality, poor planning and out of date information. That is partially the reason why I'm doing it again :) Cal On Fri, Jul 13, 2012 at 4:38 AM, Javier Guerra Giraldez wrote: > On Thu, Jul 12, 2012 at 2:37 PM, Cal Leeming [Simplic

Database Router result of error message

2012-07-13 Thread Thibault
Hello, I would like to use multiple database to save model of each application of my project on separate database. I have an issue with Django 1.4 on Python 2.6. I have created a Database Router using the official documentation but when I run the server, i have this error message: django.core

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-13 Thread worldnomad
+1 Would Love to See it! -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/I0BLSdmNO3gJ. To post to this group, send email to django-users@googlegroups.com. T

Django Egypt

2012-07-13 Thread Randa Hisham
Django Egypt new group on facebook https://www.facebook.com/groups/480998031926391/ -- Randa Hesham Software Developer Twitter:@ro0oraa FaceBook:Randa Hisham ٍ -- You received this message because you are subscribed to the

Re: Django Egypt

2012-07-13 Thread hossam algaladi
thanks, eng randa -- 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 django-users+unsubscr...@googlegroups.com. For more options, vis

Re: Django Egypt

2012-07-13 Thread Dott. Tegagni Alessandro
Hi! I'm a Italian User of django. If possible join in your groups, I believe in cooperation of different culture, We work in technology and the share is fundamental. Can I enter in this group? Best regards Alessandro

Re: dashboard for user profile

2012-07-13 Thread psychok7
yes i understand that, but i am asking if there is a pluggable app that does that for us with some jquery and stuff. as i said theres is django-profiles, but i think its poorly documented and i am not able to figure it out On Friday, July 13, 2012 8:33:04 AM UTC+1, somecallitblues wrote: > > T

Re: Pls help me to solve this error.

2012-07-13 Thread Sergiy Khohlov
paste your url.py and model.py 2012/7/13 mickey : > I had uploaded image of error. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/django-users/-/4QFMHRLMN58J. >

Django base Facebook Games

2012-07-13 Thread Martin Vincent
Looking to hire Django dev with experience in web development please email at mvinc...@isolutionspro.com or call me at 310 751 0833 Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://group

Re: ajax loading html

2012-07-13 Thread Daniel Svonava
Hi, If this is just a one-off thing, the simplest way might be just symlinking that html file to a folder where you serve your static assets from (e.g. page_media). Cheers, Daniel On Thursday, July 12, 2012 11:19:07 PM UTC+2, ledzgio wrote: > > Hi, > > I have to load with ajax (using qtip2) a

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-13 Thread Javier Guerra Giraldez
On Fri, Jul 13, 2012 at 6:25 AM, Cal Leeming [Simplicity Media Ltd] wrote: > Sadly, the original is not available due to bad sound quality, poor planning > and out of date information. then count me in! (not that i prefer to see it recorded, i just wanted to check a 'preview') -- Javier -- Y

help with Can't pickle : attribute lookup __builtin__.instancemethod failed

2012-07-13 Thread psychok7
i there, i am getting a Can't pickle : attribute lookup __builtin__.instancemethod failed *Traceback:* *File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response* * 188. response = middleware_method(request, response)* *File "/usr/local/lib/pyt

Re: Oracle error when filtering on one2many related TextField (nclob)

2012-07-13 Thread Ian
On Thursday, July 12, 2012 9:27:30 AM UTC-6, The Bear wrote: > > I get this error: > > *** DatabaseError: ORA-06502: PL/SQL: numeric or value error: character > string buffer too small > ORA-06512: at line 1 > > This is a database encoding issue; see: https://code.djangoproject.com/ticket/11580

Internationalized URL different per language

2012-07-13 Thread galgal
I need to make an urlpattern different for each language, but following to the same view. for example: url(r'^category/(?P[\w-]+)/, 'news.views.category', name='category'), in english url(r'^kategoria/(?P[\w-]+)/, 'news.views.category', name='category'), in polish if you have EN set, "kategori

Incorrect post URL on failed form validation

2012-07-13 Thread Kevin
I'm new to Django so hopefully this will be trivial to solve. I have a table of data I display in a view along with a simple form to add a new row of data to the table: def my_data_view(request, data_id): myData = MyData.objects.get(pk=data_id) if request.method == 'POST': myForm

Incorrect post URL on invalid form submissions

2012-07-13 Thread Kevin
I'm new to Django so hopefully this will be trivial to solve. I have a table of data I display in a view along with a simple form to add a new row of data to the table: def my_data_view(request, data_id): myData = MyData.objects.get(pk=data_id) if request.method == 'POST': myForm

Re: Internationalized URL different per language

2012-07-13 Thread Markus Gattol
Have a look at https://github.com/trapeze/transurlvania On Friday, 13 July 2012 21:48:54 UTC+2, galgal wrote: > > I need to make an urlpattern different for each language, but following to > the same view. > > for example: > url(r'^category/(?P[\w-]+)/, 'news.views.category', > name='category'),

Is upgrading to a newer Django version generally hassle-free?

2012-07-13 Thread sadpluto
Hello! I'm desperately trying to settle on a development stack, and by far Django has attracted me the most. The major concern (premature optimization?) I have is whether transitioning to newer versions of Django is generally easy and well documented. I can only imagine that it is, but I haven'

Re: Internationalized URL different per language

2012-07-13 Thread Daniel Geržo
On 13.7.2012 21:48, galgal wrote: I need to make an urlpattern different for each language, but following to the same view. for example: url(r'^category/(?P[\w-]+)/, 'news.views.category', name='category'), in english url(r'^kategoria/(?P[\w-]+)/, 'news.views.category', name='category'), in poli

Re: Is upgrading to a newer Django version generally hassle-free?

2012-07-13 Thread Carlos Daniel Ruvalcaba Valenzuela
On Fri, Jul 13, 2012 at 1:14 PM, sadpluto wrote: > I have is whether transitioning to newer versions of Django > is generally easy and well documented. I can only imagine that it is, but I > haven't found convincing evidence while searching online. It would be great > to see what's the consensus

m2m through problem: object has no attribute 'ce_set'

2012-07-13 Thread bn
I'm trying to get a template to iterate through and print intermediate model data. Can you look at this and point out what is wrong? I've tried to follow the django docs closely: def category_detail(request, pk): category= models.Category.objects.select_related().get(pk=pk) entries

m2m through intermediate model: template friendly syntax not working. dj1.3

2012-07-13 Thread brycenesbitt
I'm able to get an intermediate m2m model to show data, but not with the template-friendly "_set" syntax: category= models.Category.objects.select_related().get(pk=pk) entries = category.entry.order_by('-temp_sort_order').filter(temp_sort_order__gte=0) for entry i

Re: Form 'POST' to a database

2012-07-13 Thread Jani Tiainen
You still need to call result.is_valid() since it actually runs actual validation rules. Very basic form processing is usually done like this: so in case of GET you return empty form. in case of invalid POST you return form with values and error messages. After successful POST you do redirect-af

Announcement: django-s3-cache - Amazon S3 cache backend

2012-07-13 Thread Alexander Todorov
Hi everyone, I see people are using this list for small announcements so here it is :) I've just released a (what appears to be) working version of a custom cache backend which stores data into Amazon Simple Storage Service (S3). It is largely based on the existing filesystem backend with some m

Where to delete model image?

2012-07-13 Thread m.paul
Hi All, I have a Model with an image field and I want to be able to change the image using a ModelForm. When changing the image, the old image should be deleted and replaced by the new image. I have tried to do this in the clean method of the ModelForm like this: def clean(self): c

Extend user model: class inheritance or OneToOneField?

2012-07-13 Thread sdonk
Hi, I'm starting a new project and for the first time I need to extend the User model. I read the documentation and I googled a lot to try to figure out what is the best approach but I got confused. What's the the best approach? Class inheritance: from django.contrib.gis.db import models from

Django Admin - Index of Entry Being Edited

2012-07-13 Thread lubos
Hello, I need a way of getting index of the table entry which is being currently edited. I think that digging this from url would be the best, as I may need it anywhere in admin.py. How could I do it? Thank you in advance for any suggestion, Lubos -- You received this message because you are

Tasking? A fluid user experience with Uploading Media.

2012-07-13 Thread JJ Zolper
Hello everyone, So I'm pretty new to trying to develop a way to manage tasking. What do I mean tasking? Well here is an example: Let's say I want for part of my website for people to be able to create an account and and fill in a lot of fields of data but also to be able to upload files. For e

Re: Form 'POST' to a database

2012-07-13 Thread JJ Zolper
Thank you so much for the clarification! On Friday, July 13, 2012 5:24:18 PM UTC-4, Jani Tiainen wrote: > > You still need to call result.is_valid() since it actually runs actual > validation rules. > > Very basic form processing is usually done like this: > > so in case of GET you return empty f

Re: Where to delete model image?

2012-07-13 Thread Ernesto Guevara
Hi! I have this old code here. # forms.py class UploadFileForm(ModelForm): title = forms.CharField(max_length=250 ,label="Nome:") original_image = forms.ImageField(label="Imagem:") class Meta: model = Photo # models.py from django.dispatch import receiver from django.db.mo

Re: Extend user model: class inheritance or OneToOneField?

2012-07-13 Thread Ernesto Guevara
Hi! I prefer using OnetoOne with a pre_delete signal to remove user from a pirncipal object instance: from django.contrib.auth.models import User from django.db.models.signals import pre_delete from django.dispatch import receiver class Customer(User): user = models.OneToOneField(User) @rec

Re: Incorrect post URL on invalid form submissions

2012-07-13 Thread Kevin
I refactored this into a single view (similar to the Django form example) and it's working fine...not to mention it's much more DRY. Feel free to disregard! Kevin On Friday, July 13, 2012 3:00:03 PM UTC-5, Kevin wrote: > > I'm new to Django so hopefully this will be trivial to solve. > > I have

Re: django.db.utils.DatabaseError: value too long for type character varying(50)

2012-07-13 Thread James Rivett-Carnac
An old post, but I just had the same problem. On Monday, 20 September 2010 22:51:30 UTC+8, Valentin Golev wrote: > > Hello, > > I'm trying to deploy my Django application with PostgreSQL. While > trying to insert an object to the database, I'm getting the following > error: > > > django.db.uti