Re: urls for multiple django apps?

2011-06-04 Thread James Robey
Hi, it is how imports work.. You should reconstruct your import statement to read from mysite import app1 and then refer to it's views as app1.views or app2.views, etc. Hope that helps - i'm a first time poster to django. Hello, all! On Jun 5, 2011, at 2:49 AM, raj wrote: > Hey guys, just a

Re: urls for multiple django apps?

2011-06-04 Thread Kenneth Gonsalves
On Sat, 2011-06-04 at 23:49 -0700, raj wrote: > Hey guys, just a little confused about something python related. If i > have multiple apps, and they all have a views.py file. How do I import > them correctly in my urls.py file? > I'm asking this because you get the following code: > from mysite.app

Re: Preview for the new website..

2011-06-04 Thread raj
I'm a very beginner developer. I'm just wondering how you got the actual styling together? Did you bang all that out with photoshop/css/ javascript or something? Cause I want to make a website, but I don't know if I should go ahead and learn this way, or if there is an easier way. Thank you. -Raj

urls for multiple django apps?

2011-06-04 Thread raj
Hey guys, just a little confused about something python related. If i have multiple apps, and they all have a views.py file. How do I import them correctly in my urls.py file? I'm asking this because you get the following code: from mysite.app1 import views from mysite.app2 import views well, when

Re: How to implement multi-tenant, single DB, single site?

2011-06-04 Thread Doug Ballance
For our setup we created a separate user,site framework since we do a form of vhosting that serves multiple sites from one instance. We have a Site model that serves as the root tying all of our other models together. No abstract models or anything fancy, just a FK in each model class pointing bac

Re: accessing views outside a module

2011-06-04 Thread Martin
I think this depends on how you set your python path. Mine is usually set to a virtualenv AND to /foo/bar/yourproject/ (the path to your project). That means you can do the following imports in any file: from a.views import yourview from b.views import yourview Best regards, Martin On Sun, Jun

Re: confused over use of XYZ.objects.get() method

2011-06-04 Thread Javier Guerra Giraldez
I have never seen that usage of Meta. where is it documented? -- Javier -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-

Re: Setting up dev/test/production environments on the server (dreamhost)

2011-06-04 Thread Javier Guerra Giraldez
On Sat, Jun 4, 2011 at 12:29 AM, AJ wrote: > My application does require emailing users and members of the website. This > is mostly system mail and users will not email amongst themselves. on webapp servers i usually install ssmtp. it's not for handling user's email, nor for receiving messages.

accessing views outside a module

2011-06-04 Thread Bobby Roberts
let's say i've got two apps in my project... app a and app b how do i access views in app a from app b views? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe fr

How to implement multi-tenant, single DB, single site?

2011-06-04 Thread br
I have been scouring the group and interwebs and it seems multi-tenant comes up quite frequently in various scenarios, and mine is probably a common one. However, I haven't been able to distill a Djangooey best- practice from what i've read, so I figure it won't hurt to bring it up again. Here is

Translating tooltip key to tooltip text: use ugettext() and il8n?

2011-06-04 Thread Margie Roginski
I am trying to figure out if using the il8n stuff is the right approach for translating keyword names into multiline descriptions for use in ajax tooltips. The idea is I want to have a url that is like this: url(r'tooltip/(?P)/$', get_tooltip) Then in my get_tooltip() view method I'd have some

Re: save out a test database?

2011-06-04 Thread Margie Roginski
At the time I asked the question I just had the sense that I wanted to debug an issue by bringing up the web interface midway through my test. I attempted to do things like stop midway through the test via set_trace() and then ctrl-c, then look at the db from a runserver run that was pointing to

Re: confused over use of XYZ.objects.get() method

2011-06-04 Thread Ryan
Right, if what you have typed in your post is the code you are actually trying to use, there are two problems that jump out at me. The first is that *question = models.CaaQuestion(pk=210) *will actually create a new question with the primary key 210, not fetch one from the database, so when you

confused over use of XYZ.objects.get() method

2011-06-04 Thread Fred
according to the docs, .get(**kwargs) is the signature. I have a model where I have 2 foreign keys that are unique together: class CaaAnswer(models.Model): question = models.ForeignKey(CaaQuestion) assessment = models.ForeignKey(Assessment) mds = models.CharField(max_length=3, b

Custom Link in the Django Admin Site

2011-06-04 Thread Cody Woolaver
Hello, So the site that im developing with releases software over our webpage for the clients to use. We have build a management system to do this with and it works prety well. The current method in which we do things was with the wsgi passenger and i finally convinced them to go django. In the ol

Re: Aw: Re: Setting up dev/test/production environments on the server (dreamhost)

2011-06-04 Thread ApogeeGMail
+1 for Webfaction On Jun 4, 2011, at 4:48 AM, Martin Brochhaus wrote: > +1 > > Hosting 20 (or more) on Webfaction. Awesome service. Awesome speed. Peace of > mind. > > Best regards, > Martin > > -- > You received this message because you are subscribed to the Google Groups > "Django users" g

Re: Preview for the new website..

2011-06-04 Thread Shamail Tayyab
On Jun 4, 5:09 pm, Kenneth Gonsalves wrote: > On Sat, 2011-06-04 at 04:58 -0700, Shamail Tayyab wrote: > > I'ld like you to review my work and do tell me the goods and more > > important, the bads.. > > cool - what happens to non facebook users? also would love to see a > comparison between rail

Re: save out a test database?

2011-06-04 Thread Karen Tracey
On Thu, Jun 2, 2011 at 10:04 AM, Margie Roginski wrote: > Karen Tracy, if you are reading this, could you comment? > > As the person that seems to be most knowledgable about django testing > (your Django 1.1 Testing book is fantastic - I highly recommend it!), > can you confirm that something like

Re: Preview for the new website..

2011-06-04 Thread Kenneth Gonsalves
On Sat, 2011-06-04 at 04:58 -0700, Shamail Tayyab wrote: > I'ld like you to review my work and do tell me the goods and more > important, the bads.. > > cool - what happens to non facebook users? also would love to see a comparison between rails and django from you. -- regards KG http://lawgon.

Re: Django 1.3 docs PDF

2011-06-04 Thread wrongway
Thank u so much!! Great!! On Jun 2, 5:47 am, Oscar Carballal wrote: > Hello, > > I've just created a PDF (5.6MB, 1042 pages) with all the django 1.3 > docs [|], just in case someone need it (sometimes it's useful to have > the docs offline). > > Cheers, > Oscar > > [1]http://clionesoftware.com/fi

Preview for the new website..

2011-06-04 Thread Shamail Tayyab
Hi guys, From some time I've been working on this http://tunesdiary.com which is now running live on Django. It was a cool learning experience with my first site in Django after I came in from rails background and this group had been real supporting to me (thanks for the support guys, this is

Odp: Reasons to use managers

2011-06-04 Thread Tomasz Zieliński
If you use manager method, you can keep your schema unchanged/normalized and employ e.g. Memcached or Redis to store the result of your computation. This might or might not fits your use case, of course. -- Tomasz Zielinski pyconsultant.eu -- You received this message because you are subscribed

Aw: Re: Setting up dev/test/production environments on the server (dreamhost)

2011-06-04 Thread Martin Brochhaus
+1 Hosting 20 (or more) on Webfaction. Awesome service. Awesome speed. Peace of mind. Best regards, Martin -- 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/