Re: Problem with content type creation order and data recovery scheme

2009-09-04 Thread Joshua Russo
On Fri, Sep 4, 2009 at 10:37 AM, Russell Keith-Magee wrote: > > On Fri, Sep 4, 2009 at 4:57 PM, Joshua Russo > wrote: > > My goal here is to create a backup and recovery scheme, where recovery is > > possible on any computer. > > I've been performing incrementa

Re: Problem with content type creation order and data recovery scheme

2009-09-04 Thread Joshua Russo
On Fri, Sep 4, 2009 at 6:37 PM, James Bennett wrote: > > On Fri, Sep 4, 2009 at 7:35 AM, Joshua Russo > wrote: > > The reason I was looking at the dump data instead of a MySQL backup is > > because it was more obvious to automate. I'm going to take a closer look > a

PostgreSQL or MySQL, What are the +'s and -'s?

2009-09-04 Thread Joshua Russo
I personally don't have any experience with PostgreSQL and I'm generally working in a mixed MS and Linux environment. I'm interested to hear peoples views on the pluses and minuses of the two different systems. I'm a bit of a query geek too. How does that play in? I know in MySQL there are limitati

Re: PostgreSQL or MySQL, What are the +'s and -'s?

2009-09-04 Thread Joshua Russo
ion.html > > On Sep 4, 10:29 pm, Joshua Russo wrote: > > I personally don't have any experience with PostgreSQL and I'm generally > > working in a mixed MS and Linux environment. I'm interested to hear > peoples > > views on the pluses and minuses of the t

Re: PostgreSQL or MySQL, What are the +'s and -'s?

2009-09-04 Thread Joshua Russo
t; > With two servers: MySQL: 2 = 2 PostgreSQL: 2*2^2 = 8 > > With 4 servers: MySQL: 4 = 4 PostgreSQL: 2*4^2 = 32 > > With 12 servers: MySQL: 12 = 12 PostgreSQL: 2*12^2 = 288. > > > > On Sep 4, 4:29 pm, Joshua Russo wrote: > > I personally don't have any expe

Re: PostgreSQL or MySQL, What are the +'s and -'s?

2009-09-04 Thread Joshua Russo
On Fri, Sep 4, 2009 at 11:07 PM, Tim Chase wrote: > > > I personally don't have any experience with PostgreSQL and I'm generally > > working in a mixed MS and Linux environment. I'm interested to hear > peoples > > views on the pluses and minuses of the two different systems. I'm a bit > of a > >

Re: PostgreSQL or MySQL, What are the +'s and -'s?

2009-09-04 Thread Joshua Russo
27;d recommend at least > looking at it. There is even a live cd (which I have not tried) at > http://www.postgresql.org/download/ which lets you try PostgreSQL out > without having to install it. > > > > On Sep 4, 7:38 pm, Joshua Russo wrote: > > On Fri, Sep 4, 2009 at 1

Re: PostgreSQL or MySQL, What are the +'s and -'s?

2009-09-05 Thread Joshua Russo
gt; you feel and ease of use, rather than how many terrabytes they can > deal with as the features lists are more and more the same for all of > them. Support and online community is also very important, probably > the most if you're novice in both, and here MySQL prevails as it is

Re: PostgreSQL or MySQL, What are the +'s and -'s?

2009-09-05 Thread Joshua Russo
cated business rules into the database starts to make some > sense-- even more so if you don't have good control over all the > applications that are doing the updating. > > > On Sep 5, 6:25 am, Joshua Russo wrote: > > Great site! thanks > > > > With my SQL ex

Re: PostgreSQL or MySQL, What are the +'s and -'s?

2009-09-07 Thread Joshua Russo
On Mon, Sep 7, 2009 at 2:30 PM, Zberteoc wrote: > > Some consider good practice to actually never expose directly the > tables to the users but do this through stored procedures and views > only. In this way you achieves 2 major things, complete control and > security. Users have no permission to

Re: Editors of choice

2009-09-07 Thread Joshua Russo
On Mon, Sep 7, 2009 at 2:55 PM, Samuel Hopkins wrote: > Hello Django peeps, > > I am a Django newbee. I have had my eye on Djanjo for a year or so now but > held off because I had limited python experience. However, after a summer of > python and watching Django's popularity snowball, I think I am

Re: PostgreSQL or MySQL, What are the +'s and -'s?

2009-09-08 Thread Joshua Russo
On Tue, Sep 8, 2009 at 5:53 AM, Jan Ostrochovsky wrote: > > I won't compare PostgreSQL and MySQL as whole, because: > - I do not know MySQL so well, as PostgreSQL > - another flamewar could arise ;) > > I am only saying: my experience with Django+PostgreSQL is far better, > than Django+MySQL, see

Re: Editors of choice

2009-09-08 Thread Joshua Russo
On Mon, Sep 7, 2009 at 11:48 PM, Jim wrote: > > On Sep 7, 7:30 pm, Joshua Russo wrote: > > I then switched to just using Textpad with Python highlighting and > pdb, (http://docs.python.org/library/pdb.html) for debugging. Once you > get the > > hang of pdb it's ext

Re: Having Trouble with Reverse method

2009-09-08 Thread Joshua Russo
On Tue, Sep 8, 2009 at 4:49 PM, Streamweaver wrote: > > I'm having trouble understanding the output of the reverse method. > > I have the following URL pattern: > > urlpatterns = patterns('dwrangler.project.views', >(r'^in_development/$', 'summary_in_development'), > ) > > from the documentat

Is Auth really dependent on Sites?

2009-09-10 Thread Joshua Russo
I wanted to remove the Sites app because it's not needed at the moment, but when I ran the unit tests for the project the Auth unit tests use Sites functionality. If I'm using Auth should I leave sites? I really just wanted to clean up the Admin index page. --~--~-~--~~~---

Re: Is Auth really dependent on Sites?

2009-09-10 Thread Joshua Russo
On Thu, Sep 10, 2009 at 8:15 PM, Andrew Gwozdziewycz wrote: > > On Sep 10, 3:05 pm, Joshua Russo wrote: > > I wanted to remove the Sites app because it's not needed at the moment, > but > > when I ran the unit tests for the project the Auth unit tests use Sites >

What debugger do you use?

2009-05-11 Thread Joshua Russo
I'm currently using Netbeans 6.5 with the Python plugin. I was just wondering what everyone else is using because NB is a bit buggy with the Python plugin at the moment. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

App command line args for degugging in IDLE?

2009-05-14 Thread Joshua Russo
Is there a way to specify arguments for your app when debugging in IDLE? Like manage.py runserver. I can't figure out how to add the runserver to the command to start debugging. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Trouble using pdb with manage.py runserver

2009-05-15 Thread Joshua Russo
I'm starting the debugger like so: (from the dir containing manage.py) python -m pdb manage.py runserver it starts just fine, showing it paused at the first line. I set my break points using "b filename: line#". This reports that the breakpoint is set, and it seems as though it's in the right f

Problem debugging with pdb

2009-05-15 Thread Joshua Russo
(strangely my previous post seems to have disappeared so here we go again) I can't seem to get pdb to stop at my break points for a page request. I start it like so: (from the directory containing manage.py) python -m pdb manage.py runserver The debugger starts up properly, paused on the first

Re: Problem debugging with pdb

2009-05-16 Thread Joshua Russo
this site about a week ago and completely forgot about it. On May 15, 9:44 pm, Sam Chuparkoff wrote: > On Fri, 2009-05-15 at 14:00 -0700, Joshua Russo wrote: > > I can't seem to get pdb to stop at my break points for a page request. > > I start it like so: > > > (

Re: how to refer a foreign key to a non primary column from other model

2009-05-16 Thread Joshua Russo
Foreign keys only point to primary key values. That's just how relational DBs work. It looks like you just want to link details to a user. Is that correct? On May 16, 12:46 pm, lokeshmarema...@gmail.com wrote: > Hi All, > > Is it possible to create a foreign key to a model referring to a non >

Re: how to refer a foreign key to a non primary column from other model

2009-05-16 Thread Joshua Russo
ername to details table. > > Regards, > Lokesh > > On May 16, 7:30 pm, Joshua Russo wrote: > > > Foreign keys only point to primary key values. That's just how > > relational DBs work > > > It looks like you just want to link details to a user. Is that

Re: how to refer a foreign key to a non primary column from other model

2009-05-16 Thread Joshua Russo
s it's own limitations. Does this make sense? On May 16, 1:52 pm, Joshua Russo wrote: > You want to link to the id field in the auth_user table. Try the > following: > > from django.contrib.auth.models import User > > class details(models.Model): >     user = models.For

Re: how to refer a foreign key to a non primary column from other model

2009-05-16 Thread Joshua Russo
Ok, apologize. I just tried it myself and MySQL did accept the alter table. It is certainly not an operation that I have been able to perform in MS SQL Server or Oracle, though I wonder if it's something that is changing industry wide. MySQL seems to allow a foreign key to any unique index. > Thi

Re: how to refer a foreign key to a non primary column from other model

2009-05-16 Thread Joshua Russo
"I apologize" that is On May 16, 3:04 pm, Joshua Russo wrote: > Ok, apologize. I just tried it myself and MySQL did accept the alter > table. It is certainly not an operation that I have been able to > perform in MS SQL Server or Oracle, though I wonder if it's some

Just posted Currency objects for anyone who needs them

2009-05-26 Thread Joshua Russo
Currency Object - http://www.djangosnippets.org/snippets/1525/ Currency Widget - http://www.djangosnippets.org/snippets/1526/ Currency Form Field - http://www.djangosnippets.org/snippets/1527/ Currency DB Field - http://www.djangosnippets.org/snippets/1528/ Admin Integration - http://www.djangosni

Group servers dopping posts?

2009-05-31 Thread Joshua Russo
Are others having problems with posts disappearing? I've posted had a couple of different posts disappear. One was a harmless question about pdb and another was about a set of currency objects I posted to djangosnippets.org and was looking for feedback on. --~--~-~--~~~

change list multi-field sort?

2009-06-17 Thread Joshua Russo
Is there a generally accepted workaround for the problem of sorting relational models by more than one field? I have a model that represents recurring payments between a person and an object and it would be really nice to order by the object, year, and creation date in the admin app change list. -

Re: change list multi-field sort?

2009-06-17 Thread Joshua Russo
On Jun 17, 1:25 pm, Joshua Russo wrote: > Is there a generally accepted workaround for the problem of sorting > relational models by more than one field? I have a model that > represents recurring payments between a person and an object and it > would be really nice to order by the

Re: change list multi-field sort?

2009-06-18 Thread Joshua Russo
On Jun 17, 8:17 pm, Rajesh D wrote: > Hi Josh, > > On Jun 17, 10:25 am, Joshua Russo wrote: > > > Is there a generally accepted workaround for the problem of sorting > > relational models by more than one field? I have a model that > > represents recurring pa

Re: change list multi-field sort?

2009-06-18 Thread Joshua Russo
On Jun 17, 8:17 pm, Rajesh D wrote: > Hi Josh, > > On Jun 17, 10:25 am, Joshua Russo wrote: > > > Is there a generally accepted workaround for the problem of sorting > > relational models by more than one field? I have a model that > > represents recurring pa

gettext vs gettext_lazy?

2009-06-18 Thread Joshua Russo
I'm a little confused about where to use translation.ugettext and translation.ugettext_lazy. The documentation says to always use the lazy translation method in models, but it doesn't say why. Are there other places that need the lazy functionality and what makes models special that you can only u

History timeframe

2009-06-18 Thread Joshua Russo
It appears that history is only kept for about 2 months. Is this correct and can you change the length of time history is kept for? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: History timeframe

2009-06-18 Thread Joshua Russo
2009 at 2:28 PM, Joshua Russo > > wrote: > > > > It appears that history is only kept for about 2 months. Is this > > > correct and can you change the length of time history is kept for? > > > Erm, history where?  You haven't provided a lot of information,

Re: gettext vs gettext_lazy?

2009-06-18 Thread Joshua Russo
On Jun 18, 6:30 pm, Alex Gaynor wrote: > On Thu, Jun 18, 2009 at 2:22 PM, Joshua Russo wrote: > > > > > I'm a little confused about where to use translation.ugettext and > > translation.ugettext_lazy. The documentation says to always use the > > lazy t

Re: History timeframe

2009-06-18 Thread Joshua Russo
On Jun 18, 7:36 pm, Karen Tracey wrote: > On Thu, Jun 18, 2009 at 3:42 PM, Joshua Russo wrote: > > > > > Yes, there is a link that says history on the admin pages. But I do > > believe it pulls from the admin logs. > > I just checked and I've got history

Re: Query with left join?

2009-09-12 Thread Joshua Russo
On Sat, Sep 12, 2009 at 8:55 PM, Daniel Roseman wrote: > > On Sep 12, 9:53 pm, tom wrote: > > Hi, > > > > i want to produce a left-join query with the django orm. Can anybody > > help howto do the following query? > > > > SELECT S.value, D.value from data as S left join data as D on > > S.entry_i

Re: python manage.py syncdb error (L@@K)

2009-09-14 Thread Joshua Russo
On Mon, Sep 14, 2009 at 1:27 PM, about2flip wrote: > > Hi: > > I am using learn django in 24 hours and I am following this example on > models. > > from django.db import models > > class Person(models.Model): >name = models.CharField('name', maxlength=200) >email = models.EmailFie

Re: python manage.py syncdb error (L@@K)

2009-09-14 Thread Joshua Russo
On Mon, Sep 14, 2009 at 1:38 PM, Randy Barlow wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > about2flip declared: > > File "E:\djproj\ifriends\..\ifriends\People\models.py", line 8 > > def_str_(self): > > ^ > > SyntaxError: invalid syntax > > Looks like you

Re: python manage.py syncdb error (L@@K)

2009-09-14 Thread Joshua Russo
You might want to check this out as a more up to date intro: http://docs.djangoproject.com/en/dev/intro/tutorial01/#intro-tutorial01 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

Re: python manage.py syncdb error (L@@K)

2009-09-14 Thread Joshua Russo
On Mon, Sep 14, 2009 at 1:38 PM, Joshua Russo wrote: > On Mon, Sep 14, 2009 at 1:27 PM, about2flip wrote: > >> >> Hi: >> >> I am using learn django in 24 hours and I am following this example on >> models. >> >> from django.db import models

Re: send_mass_mail on object creation

2009-09-18 Thread Joshua Russo
On Fri, Sep 18, 2009 at 10:13 PM, aa56280 wrote: > > When a new instance of some object is created, I need to send out X > number of emails. X could potentially mean hundreds of emails. > > What would be the most efficient way to do this? > > I know if I use send_mass_mail() it could potentially

String encoding question

2009-09-19 Thread Joshua Russo
I was working through some regression tests and saw a scenario I thought wasn't allowed/recommended. I was under the impression that if you specified UTF-8 encoding at the top of the file you where not suppose to use u decorated unicode static string. So instead of u'prédio' I use 'prédio' in files

Re: String encoding question

2009-09-19 Thread Joshua Russo
On Sat, Sep 19, 2009 at 1:31 PM, Karen Tracey wrote: > On Sat, Sep 19, 2009 at 9:59 AM, Joshua Russo wrote: > >> I was working through some regression tests and saw a scenario I thought >> wasn't allowed/recommended. I was under the impression that if you specified >&

Re: String encoding question

2009-09-19 Thread Joshua Russo
> > ... in fact using utf-8 string literals can cause problems in other places > with code that assumes another encoding (e.g. ascii) for byte strings. > Could you expand on this? I know that the Unicode string object has different methods than standard String, but are there other scenarios where

Re: String encoding question

2009-09-19 Thread Joshua Russo
On Sat, Sep 19, 2009 at 2:40 PM, Karen Tracey wrote: > On Sat, Sep 19, 2009 at 11:19 AM, Joshua Russo wrote: > >> ... in fact using utf-8 string literals can cause problems in other places >>> with code that assumes another encoding (e.g. ascii) for byte strings. >>

Re: String encoding question

2009-09-19 Thread Joshua Russo
On Sat, Sep 19, 2009 at 3:07 PM, Karen Tracey wrote: > On Sat, Sep 19, 2009 at 11:51 AM, Joshua Russo wrote: > >> Just one other thing. I was under the impression that x = u'' >> is equivalent to x = Unicode(''). Is that not correct? Seeing as you seem &g

Re: Translating App Names

2009-09-20 Thread Joshua Russo
On Sun, Sep 20, 2009 at 6:22 PM, SaiaGo wrote: > > I'm trying to make an Israeli site (which means it should be written > in Hebrew) using the latest SVN and so far Django made it so easy I > can't believe it's free. I got a simple magazine app with up and > running in less then a day, and I bare

Re: Breakpoints in NetBeans

2009-09-21 Thread Joshua Russo
On Sep 21, 6:00 am, Kevin Bache wrote: > Hi Everyone, > I'm a bit of a Django noob so please forgive me if my hope here is > swimmingly optimistic: > > I'd like to be able to set breakpoints in my django project which would be > triggered by my browser's requests to the integrated Django developm

Re: Breakpoints in NetBeans

2009-09-21 Thread Joshua Russo
On Mon, Sep 21, 2009 at 10:15 AM, Joshua Russo wrote: > > On Sep 21, 6:00 am, Kevin Bache wrote: > > Hi Everyone, > > I'm a bit of a Django noob so please forgive me if my hope here is > > swimmingly optimistic: > > > > I'd like to be able to set bre

Re: Breakpoints in NetBeans

2009-09-21 Thread Joshua Russo
On Mon, Sep 21, 2009 at 5:33 PM, Kevin Bache wrote: > Thanks for both of your ideas. > > Joshua: It is stopping on the first line of code, and I can step through > the manage.py module and if I recall (I'm not in front of my computer at the > moment) it catches breakpoints in other files (ex: set

Re: Finding unique ForeignKey enties.

2009-09-22 Thread Joshua Russo
On Tue, Sep 22, 2009 at 7:23 PM, MV wrote: > > I have a Movie model > and I have a Image model > the Image model has a ForeignKey(Movie) > > Each Movie has an arbitrary amount of Images. > > I have a view where I list all the Movies. > For each Movie entry, I want one Image. > > How do I do that?

What JavaScript framework do you use and why?

2009-09-23 Thread Joshua Russo
I've been happily using JQuery for a while and was wondering why people use the frameworks that they do. I want to see how other's get flexibility and efficiency (cool widgets and good response time) out of JavaScript. For example: The current project I'm working on I've created a visual display of

QuerySet: clone vs deepcopy?

2009-09-23 Thread Joshua Russo
I was looking through the QuerySet code and noticed logic for both deepcopy and clone. What's the difference? What would be an example of why I should use one or the other? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

HTML / CSS question

2009-09-23 Thread Joshua Russo
I want to apply style to a block of text in the middle of a sentance without effecting the flow. I've been using what feels like a serious hack by using tags with a class property. My big fear is that the tags will disappear from the list of supported tags. But really there has to be a way to do t

Re: Help with templates

2009-09-23 Thread Joshua Russo
On Wed, Sep 23, 2009 at 12:40 PM, gustavo wrote: > > Hi people!! > > I need help trying to understand templates. > > Let me explain where I am. I have finished the django tutorial and I > am assuming ( been right or wrong, I dont know) that the best thing to > do is to use the template automatic

Re: HTML / CSS question

2009-09-23 Thread Joshua Russo
On Wed, Sep 23, 2009 at 1:00 PM, Daniel Roseman wrote: > > On Sep 23, 2:54 pm, Joshua Russo wrote: > > I want to apply style to a block of text in the middle of a sentance > without > > effecting the flow. I've been using what feels like a serious hack by > using &g

Re: multi-db vs. data warehouse

2009-09-23 Thread Joshua Russo
The multi-db branch is just now in the process of being baked into the core and from what I can tell it's not quite done yet. Even when it is completely done I would recommend the data warehouse approach. I view the multi-db functionality more as a last resort, where you really don't have an option

Re: multi-db vs. data warehouse

2009-09-23 Thread Joshua Russo
ld just connect directly to the > operational systems. I wonder if all that theory is really necessary > for a basic data warehouse... > > On Sep 23, 12:09 pm, Joshua Russo wrote: > > The multi-db branch is just now in the process of being baked into the > core > > and

Re: multi-db vs. data warehouse

2009-09-24 Thread Joshua Russo
gestion to Tony as well. ; ) > I'm a just graduate and at work I'm working on something very similar > to what has been discussed here. > > On Sep 23, 9:51 pm, Joshua Russo wrote: > > I have many years of database design experience and it sounds like you > are > > gett

Re: What JavaScript framework do you use and why?

2009-09-24 Thread Joshua Russo
Great links guys, thanks. I'm still in the mindset of frameworks just making JavaScript less painful too and I'm looking for ways to move beyond that. I just started looking at Dojo before posting this and it definitely looks like it has potential. --~--~-~--~~~---~--~-

Re: multi-db vs. data warehouse

2009-09-26 Thread Joshua Russo
mixed? > > I would start a new thread, but whereas the multi-db issue related > directly to developing Django technology, I'm not sure the issue of > the warehouse design is an appropriate topic for this group (although > I'm also not sure where I should discuss it).

Re: What JavaScript framework do you use and why?

2009-09-28 Thread Joshua Russo
On Mon, Sep 28, 2009 at 4:00 AM, Jani Tiainen wrote: > > Joshua Russo kirjoitti: > > Great links guys, thanks. I'm still in the mindset of frameworks just > > making JavaScript less painful too and I'm looking for ways to move > > beyond that. I just started l

Re: custom dynamic admin actions

2009-09-28 Thread Joshua Russo
On Mon, Sep 28, 2009 at 4:30 AM, J wrote: > > Hello, > > I need to add custom dynamic admin actions (based on records in a > related table), but I'm not entirely sure how to do this, as it's not > explained in the docs. > > Basically, I have two models: "Transaction", which has a foreign key to >

Re: What JavaScript framework do you use and why?

2009-09-28 Thread Joshua Russo
the DOM fun, but MooTools makes Javascript > fun. > > On Sep 28, 4:37 am, Joshua Russo wrote: > > On Mon, Sep 28, 2009 at 4:00 AM, Jani Tiainen wrote: > > > > > Joshua Russo kirjoitti: > > > > Great links guys, thanks. I'm still in the mindset of framew

Re: custom dynamic admin actions

2009-09-28 Thread Joshua Russo
It sounds like you just want defaults for your relationships. Is that right? How are you determining which account to use? On Mon, Sep 28, 2009 at 12:30 PM, J wrote: > > Joshua Russo wrote: > > When do you want your "dynamic actions" take place? > > > >

Re: multi-db vs. data warehouse

2009-09-28 Thread Joshua Russo
r my OOBase users to > go to would be an added plus.) > > So maybe I shouldn't be calling what I need a "warehouse", but rather > a "central data repository with an ETL layer"? Or maybe I should > throw out the ETL overhead entirely and figure out how to perf

Re: multi-db vs. data warehouse

2009-09-28 Thread Joshua Russo
On Mon, Sep 28, 2009 at 6:36 PM, David Larlet wrote: > > Le 22 sept. 2009 à 03:10, snfctech a écrit : > > I understand that there is a Django branch being actively worked on > > for connections to multiple DB vendors, or that Django + Elixir may be > > a good option. But I'm wondering if building

Re: Help on query

2009-09-28 Thread Joshua Russo
On Mon, Sep 28, 2009 at 7:55 PM, luismmontielg wrote: > > Hello, > I have my models like this... > > class Report(models.Model): >title = models.CharField(max_length=50, blank=True) >users = models.ManyToManyField(User, symmetrical=True) >categories = models.ManyToManyField("Category",

Re: Help on query

2009-09-29 Thread Joshua Russo
the ones that do not have the user. > > Thanks again > > > On 28 sep, 20:16, luismmontielg wrote: > > sorry forgot to mention its a many to many relation so a report can > > have multiple users > > > > On Sep 28, 4:29 pm, Joshua Russo wrote: > > > >

Re: Foreign language in View Model.

2009-10-10 Thread Joshua Russo
On Sat, Oct 10, 2009 at 9:15 AM, Rizwan wrote: > > Hello Djangoer, > > I am trying to create website with foreign language in it. I have > created model for content type and added one page in it. It saving > fine in database. When I have tried to write view model for this page. > Its showing me "

Re: Foreign language in View Model.

2009-10-11 Thread Joshua Russo
t; > >{% for id,url, title,content in details %} >{{title|safe}} >{% endfor %} > > > >Recent Entries > >Recent Entries1 01 Des > 06 >Recent Entries2 01 Des >

Re: JOINs with Django ORM

2009-10-19 Thread Joshua Russo
2009/10/19 Tomasz Zieliński > > On 19 Paź, 20:21, Daniel Roseman wrote: > > > > You can't do this in one query with Django's ORM. > > > > One way of doing it in two queries might be to get use .annotate() to > > add the max id of the related objectrevision for each revision, then > > get all tho

Re: Help with splicing models to a legacy DB, please

2009-10-19 Thread Joshua Russo
On Mon, Oct 19, 2009 at 8:03 PM, John Handelaar wrote: > > Hello > > For reasons I won't bore you with, a Mysql legacy DB *whose schema I > cannot alter* contains (inter alia) two tables. I'm trying to write > an alternative front-end to this DB in Django which would be > read-only. > > tableone

Re: Django Admin: DateField (Year and Month) only

2009-10-19 Thread Joshua Russo
On Mon, Oct 19, 2009 at 10:28 PM, The Danny Bos wrote: > > Hiya, > > In the Django Admin for the DateField I only want to display the Year > and Month as select lists. I'll default the day to the 1st every time. > Is this possible? > > I want to keep the dates very simple, as I'll be adding many

Re: Django Admin: DateField (Year and Month) only

2009-10-19 Thread Joshua Russo
ast reply, > > > d > > > > On Oct 20, 10:38 am, Joshua Russo wrote: > > On Mon, Oct 19, 2009 at 10:28 PM, The Danny Bos > wrote: > > > > > > > > > Hiya, > > > > > In the Django Admin for the DateField I only want to displa

Generic web-dev question: Best way to do a processing page?

2010-05-01 Thread Joshua Russo
This is mainly just curiosity at the moment. How do you create a "processing" intermediate page, like you see on travel sites when they are looking for the rates? I would always avoid this if at all possible, but sometimes you have a process that takes longer than usual. I've been looking around t

Python question about subprocess.Popen() and stdout

2010-08-02 Thread Joshua Russo
I'm creating a wxPython application that the client can run to make sure the installation stack is functioning properly. I want to include the unit test processing in this application but I've run into some difficulties. An additional wrinkle I threw in was that I am using py2exe so they don't also

Re: Python question about subprocess.Popen() and stdout

2010-08-03 Thread Joshua Russo
On Mon, Aug 2, 2010 at 6:41 PM, Joshua Russo wrote: > I'm creating a wxPython application that the client can run to make > sure the installation stack is functioning properly. I want to include > the unit test processing in this application but I've run into some > diffi

Re: Python question about subprocess.Popen() and stdout

2010-08-05 Thread Joshua Russo
On Aug 4, 6:49 pm, Hassan wrote: > > Ok, so it appears that (in Python 2.5 at least) there is no way to capture > > the stdout of subprocess.Popen() > > just do this > > from subprocess import Popen, PIPE > p = Popen([cmd], stdout=PIPE) > p.stdout.readlines() > > thats it! The problem is that it

Re: Python question about subprocess.Popen() and stdout

2010-08-06 Thread Joshua Russo
On Thu, Aug 5, 2010 at 10:53 PM, Steve Holden wrote: > On 8/5/2010 7:16 PM, Joshua Russo wrote: > > On Aug 4, 6:49 pm, Hassan wrote: > >>> Ok, so it appears that (in Python 2.5 at least) there is no way to > capture > >>> the stdout of subprocess.Popen() &

Re: Python question about subprocess.Popen() and stdout

2010-08-06 Thread Joshua Russo
On Aug 6, 9:57 am, "J. Cliff Dyer" wrote: > "Joshua Russo" wrote: > >On Thu, Aug 5, 2010 at 10:53 PM, Steve Holden wrote: > > >> On 8/5/2010 7:16 PM, Joshua Russo wrote: > >> > On Aug 4, 6:49 pm, Hassan wrote: > >> >>

Re: Python question about subprocess.Popen() and stdout

2010-08-06 Thread Joshua Russo
On Fri, Aug 6, 2010 at 12:17 PM, Joshua Russo wrote: > On Aug 6, 9:57 am, "J. Cliff Dyer" wrote: > > "Joshua Russo" wrote: > > >On Thu, Aug 5, 2010 at 10:53 PM, Steve Holden > wrote: > > > > >> On 8/5/2010 7:16 PM, Joshua Russo wrot

Which PostgreSQL driver do you use

2010-08-26 Thread Joshua Russo
There are a lot of PostgreSQL drivers listed on the Python Wiki http://wiki.python.org/moin/PostgreSQL Has anyone found one to be better or even that different from another? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Which PostgreSQL driver do you use

2010-08-26 Thread Joshua Russo
On Thu, Aug 26, 2010 at 10:17 PM, Joshua Russo wrote: > There are a lot of PostgreSQL drivers listed on the Python Wiki > http://wiki.python.org/moin/PostgreSQL > > Has anyone found one to be better or even that different from another? > Nevermind, It helps to read the docs. -

Best practices for open sourcing a Django project?

2012-10-14 Thread Joshua Russo
I have project that I have been working and I was contemplating open sourcing it but I ran into a little hang up. How to handle the database authentication. The settings file obviously needs to be included but I don't want to advertise the production database login. How is this generally handle

Re: Best practices for open sourcing a Django project?

2012-10-14 Thread Joshua Russo
> I thought it was done well, but I later realised it needed a serious amount > of re-writing and documentation - which I still haven't got around to doing; > https://github.com/foxx/django-cutemodel > > Others may be able to offer a bit more advice, but the above is a head &g

Re: Best practices for open sourcing a Django project?

2012-10-14 Thread Joshua Russo
ither. Thanks for the idea On Sunday, October 14, 2012 4:56:59 PM UTC-4, CLIFFORD ILKAY wrote: > > On 10/14/2012 03:47 PM, Joshua Russo wrote: > > I have project that I have been working and I was contemplating open > > sourcing it but I ran into a little hang up. How to h

Trouble with VirtualEnv on Windows

2012-10-14 Thread Joshua Russo
This is probably a VirturalEnv problem as opposed to a Django problem but I was wondering if someone here could point me in the right direction. I'm trying to setup clean environment for a demonstration of Django on Tuesday but I get the following when I try to setup the project within the virt

Re: Trouble with VirtualEnv on Windows

2012-10-14 Thread Joshua Russo
used / ended up with were: Python 2.7.3 (32 bit) Postgres 9.2 (32 bit) Setuptools 0.6c11 for Python 2.7 Psycopg2 2.4.5 for Python 2.7 (32 bit) VirtualEnv 1.8.2 Django 1.4.1 On Sunday, October 14, 2012 6:25:41 PM UTC-4, Joshua Russo wrote: > > This is probably a VirturalEnv

Re: Trouble with VirtualEnv on Windows

2012-10-15 Thread Joshua Russo
on main installation and virtualenv created > with --no-site-packages should disable it from virtualenv. > > This is the battle tested procedure how I do set up my environment: > > http://djangonautlostinspace.wordpress.com/2012/04/16/django-and-windows/ > > > 15.10.2012

Splitting models.py results in table rename?

2011-08-19 Thread Joshua Russo
My models.py was getting too large so I tried to split it into /models __init__.py someLogicalGroupOfModels.py andSoOn.py in the __init__.py I have from appName.models.someLogicalGroupOfModels import * from appName.models.andSoOn import * All of my imports still work but the queries are n

Re: Splitting models.py results in table rename?

2011-08-19 Thread Joshua Russo
Perfect! Thank you -- 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/-/NRyP256j0G4J. To post to this group, send email to django-users@googlegroups.com. To unsu

I need help with reverse and url patterns

2011-08-20 Thread Joshua Russo
I setup this patter in url.py url(r'^events/(?P\d{4})/(?P\d{2})/$', events, name="eventsMonth") in my template I have this tag {% url eventsMonth year=month.prev.year month=month.prev.month %} but I keep getting Caught NoReverseMatch while rendering: Reverse for 'eventsMonth' wit

Re: I need help with reverse and url patterns

2011-08-20 Thread Joshua Russo
Never mind I got it. I changed my url patter to url(r'^events/(?P\d{4})/(?P\d{1,2})/$', events, name="eventsMonth") I'm still not very sharp on my regex skills. I realized that {2} required a 2 digit number -- You received this message because you are subscribed to the Google Groups "Dj

DB based translations?

2011-08-20 Thread Joshua Russo
Ok, I've been looking into the different database based translation solutions out there and I can't find what I really had in mind. I need to have non-technical people easily update the translations. So I wanted a solution where I could create an interface to ease the process. One problem is th

Re: DB based translations?

2011-08-21 Thread Joshua Russo
Ooo that looks like what I'm looking for. Thanks for the tip. Do you have any experience with 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/-/BhN92mZ7

Re: Best approach to handling different types of Users

2011-08-21 Thread Joshua Russo
Things will break in the sense that, if you add another app that accesses the User model they will only see the original implementation. They won't get your subclass. Other than that, other apps that use the User model should "work" just fine. Unless I'm missing something, and in that case some

CSS question

2011-08-21 Thread Joshua Russo
I know this is a bit off topic but I know this place is full of very helpful intelligent people. :o) Ok so I have an html block (div, p, doesn't matter what kind), and I fill it with a label and an input text field. The input is always larger than the label (rightly so), but the label is always

<    1   2   3   >