Using array for making form

2012-09-04 Thread Satinderpal Singh
Hi, I want to make a form in such a way that the contents of the form should be declared in the array, and also the user details field corresponding to that contents of the form, which a user fills, should also be in array in the the models of the project. I currently use to do this like: class so

Authentication across projects

2012-09-04 Thread yillkid
Hi all . I have two projects (A and B), different django installation, database, but same host. I want the B projects share A project User database table. So A user account can login into B project site, but we don't create any user account in B project. and I have already search many informat

Re: No ROLLBACK within TestCase on second database

2012-09-04 Thread Mike Dewhirst
On 5/09/2012 3:09pm, Kit Randel wrote: On 05/09/12 16:28, Mike Dewhirst wrote: I asked about this a couple of weeks ago and the correct solution is to use a TransactionTestCase Hi Mike, I don't want to be explicitly test transactional behaviour, which I think is the intention behind Transacti

Re: No ROLLBACK within TestCase on second database

2012-09-04 Thread Kit Randel
On 05/09/12 16:28, Mike Dewhirst wrote: I asked about this a couple of weeks ago and the correct solution is to use a TransactionTestCase Hi Mike, I don't want to be explicitly test transactional behaviour, which I think is the intention behind TransactionTestCase. I just want each test running

Re: Django deployment questions

2012-09-04 Thread Stephen Anto
Hi Guys, For Django related questions and answers Pls visit http://www.f2finterview.com/web/Django/ On Sunday, September 2, 2012 10:37:03 AM UTC+5:30, Mike wrote: > > I just started to use Fabric to automate my deployments to my staging > server. (and w

Re: No ROLLBACK within TestCase on second database

2012-09-04 Thread Mike Dewhirst
On 5/09/2012 12:01pm, Kit Randel wrote: Hi there, I'm running into an issue on Django 1.2 where the second test in my test suite fails due to a duplicate key value violation. It appears that the issue is that calls to my 'default' db, test_app_django in this case, run within a transaction, but t

Re: Django + FAPWS doesnt show the templates/view correct

2012-09-04 Thread keeran
Finally, I understood the solution is from django.contrib.staticfiles.urls import staticfiles_urlpatterns urlpatterns += staticfiles_urlpatterns() Thanks, keeran On Friday, August 17, 2012 3:13:00 PM UTC+5:30, keeran wrote: > On the Django development server, django app works fine. But once

Re: What does this code do? Also, testing decorator via terminal?

2012-09-04 Thread Micky Hulse
On Sat, Sep 1, 2012 at 10:47 PM, Melvyn Sopacua wrote: > More precise, if it's an object instance that has HttpResponse as a > class in it's inheritance chain. > Thanks Melvyn! I really appreciate the help and description/clarification. :) -- You received this message because you are subscribe

Re: Using the CSRF token with two views

2012-09-04 Thread Robert Steckroth
Ya, that sounds like the way to go, thank you. The project is shaping up nicely, but you both were right about the JavaScript. I am thinking on a Django parsing view to do preliminary regex matching. Right now it is in the handled by the client with a 1-2 second delay/loading time. It looks incredi

Re: Editable Tables

2012-09-04 Thread m1chael
clever!! On Mon, Sep 3, 2012 at 8:20 AM, zayatzz wrote: > For this kind of thing django has forms and formsets. I would think that > this can be achieved quite easyly by using formsets. What you can do - you > can write your own widgets for this kind of table. Like widget that renders > value >

Re: 'str' object is not callable in base.py

2012-09-04 Thread Lachlan Musicman
On Wednesday, September 5, 2012, Bill Freeman wrote: > My best guess is that, for whatever reason, 'timetable_view' in your url > conf > has not been converted into the view function. Try actually importing the > view in urls.py and putting it as the target of the pattern *without* > the quotes.

Re: Editable Tables

2012-09-04 Thread MattDale
Try DHTMLX Grid. I use it solely for the editable grid feature. It took a little while to style it so it fits with my site, but as far as simple AJAX editable grids, I couldn't find an better one. On Saturday, September 1, 2012 5:58:25 PM UTC-4, Sait Maraşlıoğlu wrote: > > Just seen a demo page

Re: 'str' object is not callable in base.py

2012-09-04 Thread Lachlan Musicman
On Tuesday, September 4, 2012, zayatzz wrote: > From this post i can see this line beeing wrong . > > timetable = get_object_or_404(slug=slug) > > You also need to give object as one of the parameters for > get_object_or_404 shortcut: like this : > > https://docs.djangoproject.com/en/dev/intro/tut

Django Role in San Francisco

2012-09-04 Thread Tim
I work for AppDynamics, www.appdynamics.com, a tools monitoring company that is looking for a Sr. SWE/Principal Engineer with strong Django and Java exp. My email is tstaff...@appdynamics.com to hear more. -- You received this message because you are subscribed to the Google Groups "Django us

Django multitenant urls configuration

2012-09-04 Thread Oak
Hello everrybody! I am trying to add some simple tenancy support to an app, creating an Account model which has a string 'tenant' to be read from the request url and identify the tenant in the system: tenant.example.com/* -> www.example.com/tenant/* (rewritten by apache) I wrote a simple midd

Does ``QuerySet.select_for_update`` lock related (joined) rows as well?

2012-09-04 Thread Yo-Yo Ma
restaurant = Restaurant.objects.select_for_update().select_related('owner').get(name=u'Koala Kafe') Assuming the ``owner`` field points to a ``Person`` table, will the aforementioned query prevent the ``Person`` row returned for the Koala Kafe's owner from being saved in a separate transaction

Re: Form field with suggestions rather than binding choices

2012-09-04 Thread Vikas Rawal
> > > I want to have a field in which the drop-down menu lists some > > suggestions that the user may choose from, or if nothing suits, the > > user may enter something other than what is available on the menu. > > I think you should use a properly modified autocomplete solution. > https://cod

with/include template pattern? seeking best practices

2012-09-04 Thread Ivan Kirigin
I find myself writing things like this a lot in django templates {% for e in some_list %} {% with e as element %} {% include "single_element.html" %} {% endwith %} {% enfor %} This would be in a template which shows a lists of elements, with another template that renders a singl

Re: To Use or Not to Use the admin backend

2012-09-04 Thread Lachlan Musicman
On Wed, Sep 5, 2012 at 1:50 AM, Tomas Neme wrote: > I've a question about this. I tried to do something like this, but > using the main capabilities and hacking on the ModelAdmin classes, > changing the formsets and the like, and reusing as much as possible, > including of course the admin templat

New project: Planning for the future

2012-09-04 Thread Tom Eastman
Hey guys, I'm about to embark on a reasonably ambitious Django project that might need to be maintained for some time into the future. I'm interested in making the best choices *now* to minimize future pain. So I'm interested in peoples' experiences and maybe even regrets. What sort of things do

Re: 'str' object is not callable in base.py

2012-09-04 Thread Bill Freeman
My best guess is that, for whatever reason, 'timetable_view' in your url conf has not been converted into the view function. Try actually importing the view in urls.py and putting it as the target of the pattern *without* the quotes. If this works, then figuring out whether you needed 'app_name.ti

Re: Choosing a JS framework to go together with Django

2012-09-04 Thread Paul Menzel
Am Dienstag, den 04.09.2012, 17:37 +0100 schrieb Tom Evans: > On Tue, Sep 4, 2012 at 4:48 PM, Paul Menzel wrote: > > Am Dienstag, den 04.09.2012, 12:08 -0300 schrieb Rafael E. Ferrero: > >> Sorry paul... my bad... "without any problem" i mean. > >> > >> extract of index.html: > >> > >> >> "http:/

Re: Using the CSRF token with two views

2012-09-04 Thread Bill Freeman
Of course, JavaScript will be involved. You can probably get the token from the cookies, but you could also add code to your (first) template to set a JS variable to the token. Then, when you (on the client side) get the form to display, you can insert the appropriate hidden element. Bill On Su

messages.sucess question

2012-09-04 Thread Steven Elliott
Hello, Is there an easy way to not display a success message as an unordered list? I have been looking high and low and for some reason cannot find an answer to this. Thank you! Best, Steven Elliott -- You received this message because you are subscribed to the Google Groups "Django users" g

Output of form in Extjs

2012-09-04 Thread JJ
Hi all, I created parse django to extjs in modelforms and forms. Basically works as form.as_p but is form.extjs_output. I mapped all widgets fields to extjs. I would like to submit this code to django-project. What do you think? Thank you. João Júnior -- You received this message because you a

Re: To Use or Not to Use the admin backend

2012-09-04 Thread Carlos Daniel Ruvalcaba Valenzuela
Funny thing, this same question was asked a few years ago, the answare was that the admin was flexible enough for anything and the preferred way, only as last resort you would need to roll your own. https://groups.google.com/d/topic/django-users/BwhAa_nJSAc/discussion I'm still on the side of rol

Re: Installation script?

2012-09-04 Thread creecode
Hello Cartsten, Have you checked out pip which has a requirements feature and fabric . Those two would probably take you a fair ways or at least give you some ideas how you might approach the problem. On Monday, September 3, 2012 5:39:

Re: Validating GB telephone numbers in Django forms.

2012-09-04 Thread g1smd.1
On Monday, September 3, 2012 8:10:46 PM UTC, g1smd.1 wrote: > > I see that there are routines for validating telephone numbers in forms in > Django for several countries. > > The code for that can usually be found in the forms.py file located in the > various country folders here: > https://githu

Re: E-commerce package

2012-09-04 Thread ecs1749
Along that line, I have a need for a very simple ecommerce store that any of the existing packages (like oscommerce) can handle easily. However, I have not been able to find one that supports subscription based membership access to multimedia contents. Does anybody know if that's a function a

Re: Choosing a JS framework to go together with Django

2012-09-04 Thread Tom Evans
On Tue, Sep 4, 2012 at 4:48 PM, Paul Menzel wrote: > Am Dienstag, den 04.09.2012, 12:08 -0300 schrieb Rafael E. Ferrero: >> Sorry paul... my bad... "without any problem" i mean. >> >> extract of index.html: >> >> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> >> http://www.w3.org/19

Re: Development server won't work from a shared web host

2012-09-04 Thread Marcin Tustin
You don't have a computer that you can develop on at all? How are you writing this email? Developing over ssh is going to be a huge pain. Now, you *maybe* can use the runserver command - if you do add the --help switch it will tell you how to run it to bind to a particular interface and port. It m

Re: Choosing a JS framework to go together with Django

2012-09-04 Thread Melvyn Sopacua
Op 4 sep. 2012 16:38 schreef "Peith Vergil" het volgende: > > i've been playing with KnockoutJS lately. +1 on knockout. > > -- > 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. >

Re: Development server won't work from a shared web host

2012-09-04 Thread ecs1749
I don't have a local machine I can use to learn Django - just a personal acct from a shared host. The question I kept asking was: How do I get into admin and follow the tutorial without the development server because the tutorial doesn't tell me that. Regards, On Monday, September 3, 2012 11

Re: Choosing a JS framework to go together with Django

2012-09-04 Thread Paul Menzel
Am Dienstag, den 04.09.2012, 12:08 -0300 schrieb Rafael E. Ferrero: > Sorry paul... my bad... "without any problem" i mean. > > extract of index.html: > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> > http://www.w3.org/1999/xhtml";> > > > ..

Re: Choosing a JS framework to go together with Django

2012-09-04 Thread Rafael E. Ferrero
Sorry paul... my bad... "without any problem" i mean. extract of index.html: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml";> ... do you see something wrong there, maybe a mistake?? 2012/9/4 Paul Menzel > > Dea

Re: Choosing a JS framework to go together with Django

2012-09-04 Thread Paul Menzel
Dear Rafael, Am Dienstag, den 04.09.2012, 11:55 -0300 schrieb Rafael E. Ferrero: > men, i use Jquery on www.expoferiasg.com.ar and works quite well.. > with any problem. s,with,without,? Additionally your site does not tell my browser what character set it is using and therefore all special sig

Re: Choosing a JS framework to go together with Django

2012-09-04 Thread Rafael E. Ferrero
men, i use Jquery on www.expoferiasg.com.ar and works quite well.. with any problem. 2012/9/4 Peith Vergil > i've been playing with KnockoutJS lately. one thing i like about it is > that it's built-in templating engine has a different syntax than Django's, > so there shouldn't have any conflict.

Re: Choosing a JS framework to go together with Django

2012-09-04 Thread Peith Vergil
i've been playing with KnockoutJS lately. one thing i like about it is that it's built-in templating engine has a different syntax than Django's, so there shouldn't have any conflict. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to th

Re: Choosing a JS framework to go together with Django

2012-09-04 Thread Alex Strickland
On 2012/09/04 03:39 PM, dotnetCarpenter wrote: I'm new here and just took over a Django project for the first time. I'm still getting to grip with Django but as a front end dev for the past 5 years, I'm also looking for a client-side library/framework to go together with my project. AngularJS

Re: Choosing a JS framework to go together with Django

2012-09-04 Thread Marcin Tustin
Why? On Tue, Sep 4, 2012 at 10:23 AM, Alec Taylor wrote: > AngularJS? > > > On Tue, Sep 4, 2012 at 11:39 PM, dotnetCarpenter > wrote: > >> Hi all. >> >> I'm new here and just took over a Django project for the first time. I'm >> still getting to grip with Django but as a front end dev for the p

Converting my Django app so that it uses one database: what approach to use for auth?

2012-09-04 Thread H. de Vries
Hey all, At the moment I have a Django app that has multiple settings files and multiple databases for my customers. I run a separate Django instance for each customer. I'm going to put it all together in 1 database so that I can run it in one instance. This makes creating new customer accounts

Re: Choosing a JS framework to go together with Django

2012-09-04 Thread Alec Taylor
AngularJS? On Tue, Sep 4, 2012 at 11:39 PM, dotnetCarpenter wrote: > Hi all. > > I'm new here and just took over a Django project for the first time. I'm > still getting to grip with Django but as a front end dev for the past 5 > years, I'm also looking for a client-side library/framework to go t

Re: To Use or Not to Use the admin backend

2012-09-04 Thread Tomas Neme
> Anyway, to the question. Once the models, the intermediate models and > the interactions between all of them start getting sufficiently > complex, you will need to put new forms on front. Theoretically, you I've a question about this. I tried to do something like this, but using the main capabil

Re: Django Interview Questions

2012-09-04 Thread Stephen Anto
Hi Guys, I have updated Django latest interview questions and answers. It may cover all technical requirements of the interview. Vist http://www.f2finterview.com/web/Django/ for latest Django interview questions and answers On Monday, November 2, 2009

Choosing a JS framework to go together with Django

2012-09-04 Thread dotnetCarpenter
Hi all. I'm new here and just took over a Django project for the first time. I'm still getting to grip with Django but as a front end dev for the past 5 years, I'm also looking for a client-side library/framework to go together with my project. My requirements for a JS framework is that it:

Re: Installation script?

2012-09-04 Thread Carsten Agger
Den 03-09-2012 16:07, Andres Reyes Monge skrev: Take a look at this project https://github.com/dcramer/logan Thanks a lot, but I'm afraid that's not quite what I'm looking for. It seems logan is a tool for running Django instances as standalone program. What I'm looking for is a standardized

Re: Is the logic in my model correct? Best-case?

2012-09-04 Thread Barry Morrison
That's exactly what I needed. Thank you *very* much! On Mon, Sep 3, 2012 at 8:44 PM, Dennis Lee Bieber wrote: > On Mon, 3 Sep 2012 18:51:45 -0700 (PDT), Barry Morrison > declaimed the following in > gmane.comp.python.django.user: > > > Model: http://dpaste.org/dqwmc/ > > > > There can be many p

Re: mod_python doesn't work propoerly

2012-09-04 Thread Tom Evans
On Tue, Sep 4, 2012 at 8:06 AM, Maheshakya Wijewardena wrote: > I want to use django with apache server, but it needs mon_python > > I've been trying to install mod_python ( > mod_python-3.3.1.win32-py2.5-Apache2.2_2.exe ), but the following errors > occur during the installation > 1. could not cr

Re: Upload Image and pdf file

2012-09-04 Thread Dott. Tegagni Alessandro
The file settings.py is: http://dpaste.com/796111/ But the result is page not found, when i click on media file, that i upload. any ideas? Il giorno domenica 2 settembre 2012 15:53:48 UTC+2, Dott. Tegagni Alessandro ha scritto: > > The file urls.py is: http://dpaste.com/795211/ > If it is the he

Re: Javascript Image Hollover In Django

2012-09-04 Thread Amyth Arora
Here i created a step by step tutorial with explanations for you. Enlarge Image on Hover - jQuery On Sat, Sep 1, 2012 at 3:25 AM, coded kid wrote: > When I followed your tutorial, the images were reshaped only

Re: E-commerce package

2012-09-04 Thread Gour
On Tue, 4 Sep 2012 00:01:39 -0700 Randa Hisham wrote: > Iam developing an e-commerce website,lookig for a good django package > any recommends? Mezzanine & Cartridge - http://mezzanine.jupo.org/ Sincerely, Gour -- It is far better to discharge one's prescribed duties, even though faultily,

Re: E-commerce package

2012-09-04 Thread anthony tresontani
http://oscarcommerce.com/ On 04/09/12 09:27, zayatzz wrote: http://satchmoproject.com/ On Tuesday, September 4, 2012 10:02:07 AM UTC+3, randa hisham wrote: Iam developing an e-commerce website,lookig for a good django package any recommends? -- Randa Hesham Software Deve

django-template-minimizer

2012-09-04 Thread Charles Kaminski
The django-template-minimizer project is a manage.py command to minimize your django templates after development. Instead of minimizing your html every time you serve it up, minimize your templates just once. Please take a look at this beta project, try it out, and send me feedback on this th

Re: Development server won't work from a shared web host

2012-09-04 Thread ecs1749
To answer my own question, I found the following: http://www.andymboyle.com/django-tutorials/ On Monday, September 3, 2012 7:32:08 PM UTC-7, ecs1749 wrote: > > Thanks for the reply. Yes, I saw that message. I am a bit lost where to > go next if I completely ignore that tutorial regarding doing

mod_python doesn't work propoerly

2012-09-04 Thread Maheshakya Wijewardena
I want to use django with apache server, but it needs mon_python I've been trying to install mod_python ( mod_python-3.3.1.win32-py2.5-Apache2.2_2.exe ), but the following errors occur during the installation 1. could not create mod_python-py2.5 2. could not set key value Python 2.5 mod_python-3

Re: E-commerce package

2012-09-04 Thread Gladson Simplício Brito
http://www.merengueproject.org/ http://www.satchmoproject.com/ http://www.getlfs.com/ 2012/9/4 Randa Hisham > Iam developing an e-commerce website,lookig for a good django package > any recommends? > > -- > Randa Hesham > Software Developer > > Twitter:@ro0oraa

Django admin, trying to do a custom search

2012-09-04 Thread Johie
I'm saving a JSON parsed string containing dxdiag information in a field and I need to search through this field in the admin interface. I override queryset function but I can't seem to get it to work. Does someone have any suggestions to what I am doing wrong? I got 15 posts and when I search

Re: E-commerce package

2012-09-04 Thread zayatzz
http://satchmoproject.com/ On Tuesday, September 4, 2012 10:02:07 AM UTC+3, randa hisham wrote: > > Iam developing an e-commerce website,lookig for a good django package > any recommends? > > -- > Randa Hesham > Software Developer > > Twitter:@ro0oraa > FaceBook:

E-commerce package

2012-09-04 Thread Randa Hisham
Iam developing an e-commerce website,lookig for a good django package any recommends? -- Randa Hesham Software Developer Twitter:@ro0oraa FaceBook:Randa Hisham ٍ -- You received this message because you are subscribed to the