issue with simple image ordering view

2009-07-25 Thread django user
I have a basic form with that shows user's uploaded images: {% for photo in photos %} Order: {% endfor %} I'm stuck trying to figure out how to get the post values for each image in my view. I believe that I can do request.POST.getlist ('image') but that wi

Re: issue with simple image ordering view

2009-07-26 Thread django user
How would I make a formset for exactly the # of images I have in a queryset? On Jul 26, 1:37 am, Daniel Roseman wrote: > On Jul 26, 6:13 am, django user wrote: > > > > > I have a basic form with that shows user's uploaded images: > > > > > > >  

Re: Multi select field with images

2009-07-31 Thread django user
shameless bump. Still can't figure out how this would be accomplished... On Jul 8, 8:01 pm, Tim Boy wrote: > What's the best way to make this "custom" widget. I can't find any > information online with someone making a widget do anything different to the > actual html of the widget. > > TIA > >

Re: Stopping people loging in twice

2009-07-31 Thread django user
I'm interested in a solution for this as well. I am thinking that a good way might be to rewrite the auth middleware to check and see if a user login for this user exists and if it does then remove that login and log in the current user. A message could then be passed to the login page letting th

Re: Stopping people loging in twice

2009-07-31 Thread django user
So is there a viable django solution for this problem? On Jul 31, 7:50 pm, Malcolm Tredinnick wrote: > On Fri, 2009-07-31 at 19:43 -0700, django user wrote: > > I'm interested in a solution for this as well. > > > I am thinking that a good way might be to rewrite the

Generating object documentation from its instance

2007-02-27 Thread django-user
Hi, (This is not directly related to Django, but would help me in that domain) I was wondering if there exists some kind of automated documentation generator (html, pdf, text, whatever readable format) for instanciated objects. Basic use for me would be to pass a [newform] object, and it would

[Newforms] ChoiceField: where to initialize choices

2007-02-28 Thread django-user
Hello, Considering this basic model: ** *from django.contrib.auth.models import User * *class Meeting(models.Model): *chairmen = models.ManyToManyField(User, related_name="meetings") *participants = models.ManyToManyField(User, related_

Accessing request and session objects from templates

2006-11-04 Thread django-user
Hi, I am wondering if there is a way to access request data and session object directly from Django templates, in the same way as {{ user }} for instance. I must admit I'm a bit lost with template context processors and so on... Thanks for the tip. --~--~-~--~~~---~-

Status of Oracle support in Django (trunk?)

2006-11-17 Thread django-user
Hi, Reading the Django Book online, I noticed that Oracle support made its way in chapter 5. It is the first time I see Oracle mentionned in official Django material. The only references I found before are from the 'Boulder Oracle sprint', tickets 87 & 1990 and their numerous patches. What is th

Session data remains after logout

2006-11-28 Thread django-user
Hi, I store user data in sessions, for authenticated users. When the user logs out (I use the view shortcut django.contrib.auth.views.logout), his/her session data remains. Is there an easy way to remove all session data after a user logout? I would prefer to avoid wrapping the automated logout i

Re: Session data remains after logout

2006-11-29 Thread django-user
Thanks Antonio. This does not directly solve my problem (linked to an old PHP reflex by the way), but I'll definitely have a look as it may come in handy later. I see no 'magic' answer to my problem, and looking at the function django.contrib.auth.logout(), it's not that hard to wrap around it.

Where to start with the upcoming newforms module?

2006-12-08 Thread django-user
Hi, I came across the new 'newforms' page in Django documentation pages. I am rather happy to get details about the replacement plan, but it is definitely lacking information about 'what' it will really replace, and in what way. So here I am with a few questions: 1) is this module fully operatio

Ho do your Django applications fit in your projects?

2007-01-16 Thread django-user
Hi community, Been playing with Django for a while now, but I am still confused about the separation of applications within a project. So far, I end up either implementing all my features within one Django app, or having too many direct connections between my apps, making each of them unexportab

Re: Ho do your Django applications fit in your projects?

2007-01-17 Thread django-user
Basically I am working on a very light groupware project, customised for my unit (in terms of functionalities, workflows, reporting, statistics). I started a Django project with 3 major features in mind: 1) bug tracking (a la Trac, without any connection to revision control) 2) centralized docum

Need advice for model relationship (onetoone inside?)

2007-02-02 Thread django-user
Hi community, For a smallish app, I want to manage document templates (model: Template) for documents (model: Document). Template has a foreign key on Document (many to one relationship). Now, I want a default Template per Document. How would I do that? I thought of various implementations: - h

Checking inputs based on a specified data type

2011-06-28 Thread Django user
Hi, I have a field in my database which contains data type as a text. Note: these data types will be used when filling up information. How to based my input in my specified data type as an Admin control? For example, i have a category of payment and i choose on another field is "numeric" as a

segmentation fault

2015-01-13 Thread Django User
hello i keep getting the following error messages that state mod_wsgi was already loaded and segmentation faults. pls. see an example: [Tue Jan 13 23:46:11 2015] [error] /usr/local/lib/python2.7/dist-packages/pytz/__init__.py:29: UserWarning: Module mod_wsgi was already imported from None, but

implementing dynamic models

2015-03-17 Thread Django User
hello, we are working on an application where users can register new types of data streams through Django. so it requires a mechanism to create new tables (cassandra) on the fly. what is the best Djangoish way to implement such dynamic models? pls. let us know. thanks in advance. -- You recei

Re: implementing dynamic models

2015-03-17 Thread Django User
during the >> configuration step of the app). >> >> Not sure if this would work though... >> >> Em ter, 17 de mar de 2015 às 08:27, Django User > > escreveu: >> >> hello, >>> we are working on an application where users can register ne

Please help:ImportError: No module named django

2014-07-24 Thread New Django User
Hi, I have problems with Django in windows 7. I installed Django using Windows Powershell: PS C:\Python27> pip install django Requirement already satisfied (use --upgrade to upgrade): django in c:\anaconda\lib\site-package. However, when I run "import django" in Python 2.7.6 shell, it showed t

Re: Please help:ImportError: No module named django

2014-08-03 Thread New Django User
t when you do the following? > > Python 2.7.6 > > >>> import sys > >>> sys.path > > On Thu, Jul 24, 2014 at 1:23 PM, New Django User > wrote: > > Hi, I have problems with Django in windows 7. > > > > I installed Django using Windows Powe

Re: Please help:ImportError: No module named django

2014-08-03 Thread New Django User
ks. Xuan On Thursday, July 24, 2014 4:07:26 PM UTC-4, Matt Gushee wrote: > > Hi, Liu Xuan-- > > What result do you get when you do the following? > > Python 2.7.6 > > >>> import sys > >>> sys.path > > On Thu, Jul 24, 2014 at 1:23 P

consume Google API through REST API

2020-02-26 Thread New Django user
I am new to Django and building a simple webpage where the user can upload a file and then that file will be processed using Google API. I am done with creating a user login page but not sure how to start with the 2nd part i.e. file upload and Google API. Can anyone help me or suggest some tuto

Re: consume Google API through REST API

2020-02-26 Thread New Django user
> On Wednesday, 26 February 2020 18:00:09 UTC+5:30, New Django user wrote: >> >> I am new to Django and building a simple webpage where the user can >> upload a file and then that file will be processed using Google API. I am >> done with creating a user login page bu