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

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

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: 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

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

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

How do determine which {% load %} item is missing?

2011-11-22 Thread Joshua Russo
I've noticed that instead of generating an error, if a filter or tag is used that is not found in a {% load %} item, the include that contains the error is just skipped. Is there anyway to debug which filter/tag is failing? -- You received this message because you are subscribed to the Google G

How to specify a group by field set?

2011-11-22 Thread Joshua Russo
Is there a way to select a list of group by columns? The aggregation methods seem only apply to a single model but I want to use fields from different models to group by. select org.id as organization_id, dep.id as department_id, cat."catId", max(cat.name) as name,

Re: Query exclude via model_set property?

2011-11-12 Thread Joshua Russo
it looks like this is the best way to tackle the problem. http://stackoverflow.com/questions/1724317/django-exclude-on-a-many-to-many-relationship-through-a-third-table -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on

Query exclude via model_set property?

2011-11-12 Thread Joshua Russo
I have a 3 table solution class Organization(models.Model): name = models.CharField("Organization's name", max_length=100) class OrganizationDepartment(models.Model): organization = models.ForeignKey(Organization) name = models.CharField("Name", max_length=100) contacts

Is there any particular reason why it's assumed you won't be performing a Max on a CharField?

2011-09-21 Thread Joshua Russo
Is there any particular reason why it's assumed you won't be performing a Max on a CharField? I tried to create the following QuerySet: Document.objects.filter(documentType=1, event__eventType=3).annotate(event_date=Max('event__start_date'), subcommittee=Max('event__subcommittee__name')).orde

Re: Alter the list of fields returned by a queryset without turning them into strings?

2011-09-13 Thread Joshua Russo
I had previously typed (but obviously not sent) a thank you ... so, thank you. That was what I was looking for and did lead me to my ultimate solution. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit h

Re: Alter the list of fields returned by a queryset without turning them into strings?

2011-09-13 Thread Joshua Russo
So, how I actually solved it was even a bit different: Document.objects.filter(documentType=1, event__eventType=1).annotate(Max('event__start_date')).order_by('event__start_date__max') I had to use the Max function because the relationship is actually a many to many. Even if it was just a stand

Alter the list of fields returned by a queryset without turning them into strings?

2011-09-12 Thread Joshua Russo
I have 2 tables, document and event. I want to retrieve the document url and the event date but it seems like I can't do this in a single query set and that is then used directly in a template. This was my first thought: context = { 'minutes': Document.objects.filter(documentType=1, eve

Re: When is it useful to run multiple admin sites?

2011-09-11 Thread Joshua Russo
That makes sense. 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://groups.google.com/d/msg/django-users/-/Hz0DW_-dSwAJ. To post to this group, send email to django-users@googlegroups.com. T

When is it useful to run multiple admin sites?

2011-09-11 Thread Joshua Russo
I know you can run multiple admin sites, but the only reason I can see for doing it is to have a full admin and other customized admin sites for different types of users. This is possibly even a stretch, and really just a guess. What are some of the use cases for multiple admin sites? -- Yo

Re: CSS question

2011-08-21 Thread Joshua Russo
Thanks for the help, CSS is always my gremlin -- 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/-/TmoW1R-DflQJ. To post to this group, send email to django-use

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

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

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

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: 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

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: 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

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: How to prevent model formset from saving the empty forms?

2011-08-09 Thread Joshua Russo
I just needed to retrieve the first pk value from the field's queryset in the init of the form and set the initial value there. -- 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/

Re: How to prevent model formset from saving the empty forms?

2011-08-09 Thread Joshua Russo
Nm, I got 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/-/lYt3r0vdv4cJ. To post to this group, send email to django-users@googlegroups.com. To unsubscrib

Re: How to prevent model formset from saving the empty forms?

2011-08-09 Thread Joshua Russo
Ok, I figured out why, but I still don't know how to fix it. I set a dropdown to empty_label = None, which automatically selects the first element. I want that, but the form then thinks it has changed because the value in the list of initial values is empty for that field, and I can't see how

How to prevent model formset from saving the empty forms?

2011-08-09 Thread Joshua Russo
I have a model formset that's displaying an extra form, but when I save I always get that form saved as an empty entry. How do I tell it not to save the model forms that I don't edit? It doesn't happen this way in the admin, does it? -- You received this message because you are subscribed to t

Re: How to test form values in a template? (simplified)

2011-08-07 Thread Joshua Russo
It's more that I want to have different ways of displaying the same form field. I want the text field to be on the same line as the checkbox when it's an input field and below it when it's displayed as a textarea. There's also the point of changing the required setting of the same field based on

How to test form values in a template? (simplified)

2011-08-07 Thread Joshua Russo
I realize that I went from too little information, to too much information in the previous post, so this is an attempt to find a middle ground. What I'm building is the ability to have a list of checkable options, and depending on the setup for a give option it may have a text field to enter ad

Re: Best practice when testing form values in a template?

2011-08-05 Thread Joshua Russo
Ok, I apologize. Here is a fuller representation of what I'm doing. I had a hard time figuring out how much was enough versus too much. This is simplified, but I think it represents what I'm trying to do. For instance, don't pay too much attention to the save logic in the view, I haven't actual

Re: Best practice when testing form values in a template?

2011-08-03 Thread Joshua Russo
Really? Nothing? Do you need more information? From the lack of response I feel like I'm completely off the mark and nobody wants to tell me. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://grou

Re: Best practice when testing form values in a template?

2011-08-03 Thread Joshua Russo
Or am I not using these concepts as intended? -- 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/-/UvoTGqPzDBoJ. To post to this group, send email to django-user

Best practice when testing form values in a template?

2011-08-02 Thread Joshua Russo
Ok, so I've created a fairly simple form: class OrganizationItemForm(AuditModelForm): selected = forms.BooleanField() extraRequired = forms.BooleanField(widget=forms.HiddenInput) multiLineInfo = forms.BooleanField(widget=forms.HiddenInput) def __init__(self, *args, **k

Re: Extending the ManyToMany relation, maybe a bad idea

2011-07-28 Thread Joshua Russo
Ya, sorry, I was just getting frustrated because I was taking longer than I wanted to implement this. The formset is what I ended up with. The tricky part is still that I want a defined list of options in the formset, so I can't just make it a model formset. I haven't worked in Django in a while

Re: Extending the ManyToMany relation, maybe a bad idea

2011-07-27 Thread Joshua Russo
Ok, so I can retrieve this extra data in the __init__ of the model form, but it seems like I will need to skip all of the cleaning and automatic validation of the form; because the data, to be displayed with the associated checkbox will have to be included with the items field in the Organizati

Re: Extending the ManyToMany relation, maybe a bad idea

2011-07-27 Thread Joshua Russo
My problem is that I have multiple values and I need to associate the list of extra fields with selected relations for the ManyToMany relation. Below is a simplified version of what my setup is. I want to create an edit form for Organization, but I'm struggling with how best to save (and re-re

Re: Extending the ManyToMany relation, maybe a bad idea

2011-07-27 Thread Joshua Russo
Someone tell me where I'm going wrong conceptually here, I feel like I'm making this too hard. -- 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/-/T5m8OIVMyusJ

Re: Extending the ManyToMany relation, maybe a bad idea

2011-07-27 Thread Joshua Russo
I am using the through keyword. I'm just trying to figure out the most efficient way to create a form field and widget to update the data. What I'm struggling with is how a ManyToMany field with an intermediate table containing extra fields fits into the ModelForm saving. I'm just not sure wher

Extending the ManyToMany relation, maybe a bad idea

2011-07-24 Thread Joshua Russo
Ok, so I've created a structure of selectable properties, that for the most part is a straight forward many-to-many relationship. What I've added is a character field in the relationship table that should conditionally display based on the setup of the property being selected. What I wanted to

Re: Trouble overriding registration templates

2011-07-19 Thread Joshua Russo
btw, I was correct, it was the development settings causing the problem On Wed, Jul 13, 2011 at 1:43 PM, Joshua Russo wrote: > Correct > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To view this discuss

Re: Trouble overriding registration templates

2011-07-13 Thread Joshua Russo
Correct -- 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/-/K5yKllF_gPcJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe fro

Re: Trouble overriding registration templates

2011-07-13 Thread Joshua Russo
*light bulb* I forgot about my development vs production settings. I was only changing the TEMPLATE_DIRS in the main settings.py that represents my production settings. I'm not in a place where I can test this but I'm almost certain that's what the problem is. -- You received this message beca

Re: Trouble overriding registration templates

2011-07-13 Thread Joshua Russo
Cool, thanks for the confirmation. I do have my template directories explicitly listed in TEMPLATE_DIRS. I even made sure that my app's templates came before the admin templates, but for some reason it's not picking up my /registration/logged_out.html and the others that show up in the admin's

Re: Trouble overriding registration templates

2011-07-13 Thread Joshua Russo
That's fine, but I was under the impression that the templates could be overridden just by creating the proper path in my template directories. Is that not true? -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the we

Re: AW: Trouble overriding registration templates

2011-07-13 Thread Joshua Russo
Am I wrong about how templates work? -- 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/-/FVBKI9qS2PQJ. To post to this group, send email to django-users@googleg

Re: AW: Trouble overriding registration templates

2011-07-13 Thread Joshua Russo
Sorry, auto correct strikes again. I was trying to reply quickly from my phone. I meant auth, not author views. -- 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-us

AW: Trouble overriding registration templates

2011-07-13 Thread Joshua Russo
I do have a views that are basically just proxies for the author views, but I was under the impression that if I just wanted to replace the registration templates then all I needed was a registration directory in my templates directory with the right file names. From there it should just take th

Trouble overriding registration templates

2011-07-12 Thread Joshua Russo
I want to use my own logout template but it doesn't want to pick it up. The login template worked just fine, but for anything that's already in the admin's template/registration folder, it only wants to use those. I tried putting my templates folder before the admin templates folder in the list

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. -

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: 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

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 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-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-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

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

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

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

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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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
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
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: 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-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-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: 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-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: 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: 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

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

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

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

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?

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: 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 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: 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: 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: 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
> > ... 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 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 >&

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: 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

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, 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
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: 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: 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: 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 >

  1   2   3   >