Re: Django development workflow

2009-03-01 Thread CLIFFORD ILKAY
Gour wrote:
>> "Clifford" == CLIFFORD ILKAY  writes:
> Clifford> To keep it simple, we use PostgreSQL in development, QA, and
> Clifford> production and on those projects where we're forced to use
> Clifford> MySQL due to client requirements, then MySQL everywhere.
> 
> What about 'syncing' content (if that is the issue)?
> 
> Dump on production, import on development, add new content, dump on
> development, import on production?

It's entirely up to you. You could use your database's dump/load
facilities, which would be the highest performance. You could dump/load
using a Python script and the Django ORM. You could dump using
"django-admin.py dumpdata"
 and
use fixtures to load that data
.
Django doesn't impose a particular approach but it gives you some nice
tools you can use, if you wish to use them.
-- 
Regards,

Clifford Ilkay
Dinamis
1419-3266 Yonge St.
Toronto, ON
Canada  M4N 3P6


+1 416-410-3326


smime.p7s
Description: S/MIME Cryptographic Signature


Re: admin templates problem

2009-03-01 Thread alexarsh

I can't see the blue admin template. I can't see it only on the page I
overrided - (contrib/admin/templates/admin/index.html)

Regards, Alex A.

On Mar 2, 7:39 am, Malcolm Tredinnick 
wrote:
> On Sun, 2009-03-01 at 21:06 -0800, knight wrote:
> > Hi,
>
> > I have a django application where I override the main admin page
> > (index.html in template/admin)
> > I use apache, I have a link to admin media folder and I have a
> > following problem:
>
> > In my admin pages I see the admin templates on all the pages except
> > the one I overrided (index.html).
>
> What do you mean when you say you don't see the admin template? Do you
> not see your custom version? Or you don't see anything?
>
> Regards,
> Malcolm
--~--~-~--~~~---~--~~
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-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: admin templates problem

2009-03-01 Thread Alex Gaynor
On Mon, Mar 2, 2009 at 12:39 AM, Malcolm Tredinnick <
malc...@pointy-stick.com> wrote:

>
> On Sun, 2009-03-01 at 21:06 -0800, knight wrote:
> > Hi,
> >
> > I have a django application where I override the main admin page
> > (index.html in template/admin)
> > I use apache, I have a link to admin media folder and I have a
> > following problem:
> >
> > In my admin pages I see the admin templates on all the pages except
> > the one I overrided (index.html).
>
> What do you mean when you say you don't see the admin template? Do you
> not see your custom version? Or you don't see anything?
>
> Regards,
> Malcolm
>
>
>
> >
> The index.html is only for the index page, perhaps you meant to overide
base.html or base_site.html?

Alex


-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." --Voltaire
"The people's good is the highest law."--Cicero

--~--~-~--~~~---~--~~
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-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: admin templates problem

2009-03-01 Thread Malcolm Tredinnick

On Sun, 2009-03-01 at 21:06 -0800, knight wrote:
> Hi,
> 
> I have a django application where I override the main admin page
> (index.html in template/admin)
> I use apache, I have a link to admin media folder and I have a
> following problem:
> 
> In my admin pages I see the admin templates on all the pages except
> the one I overrided (index.html).

What do you mean when you say you don't see the admin template? Do you
not see your custom version? Or you don't see anything?

Regards,
Malcolm



--~--~-~--~~~---~--~~
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-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



admin templates problem

2009-03-01 Thread knight

Hi,

I have a django application where I override the main admin page
(index.html in template/admin)
I use apache, I have a link to admin media folder and I have a
following problem:

In my admin pages I see the admin templates on all the pages except
the one I overrided (index.html).
Is anyone know what can be the problem?

Thanks, Arshavski Alexander.
--~--~-~--~~~---~--~~
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-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Using Admin Datepicker in Other Apps

2009-03-01 Thread Chris Spencer

On Sun, Mar 1, 2009 at 11:44 PM, Chris Spencer  wrote:
> On Sun, Mar 1, 2009 at 10:29 PM, Alex Gaynor  wrote:
> I had known about the widgets.css file, but it still wasn't working.
> However, I tried removing all my custom JS/CSS, and found that some of
> my custom CSS was interfering. Thanks for your help.

Quick update. I found that it was actually RUZEE.ShadedBorder
(http://www.ruzee.com/blog/shadedborder) that was interfering. I'm not
exactly sure how, but removing that fixed the datepicker.

Chris

--~--~-~--~~~---~--~~
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-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: NameError on view which IS defined

2009-03-01 Thread Les



On Mar 1, 11:22 pm, Malcolm Tredinnick 
wrote:
> On Sun, 2009-03-01 at 19:38 -0800, Les wrote:
> > I created a view and template dummy / dummy.html to use in new urls
> > for testing.
>
> > Despite the fact that both are defined, I get NameError:
>
> > The other urls defined work fine, if I take the refs to dummy out of
> > urls.py.  As is, nothing works.
> > +===
> > Here's urls.py:
>
> > from django.conf.urls.defaults import *
> > from django.conf import settings
> > import os
> > from frodo.views import welcome
> > from frodo.views import outside_home
>
> > # Uncomment the next two lines to enable the admin:
> > from django.contrib import admin
> > admin.autodiscover()
>
> > urlpatterns = patterns('',
> >    # Example:
> >     # (r'^frodo/', include('frodo.foo.urls')),
> >     # Outside homepage
> >     (r'^$', outside_home),
> >     # Welcome page (after login)
> >     (r'^welcome/$', welcome),
> >     (r'^login/$', dummy),
> >     (r'^upload/$', dummy),
> >     (r'^download/$', dummy),
>
> The error is telling you what the problem is: the name is not defined in
> this namespace. Because you haven't imported it. Notice that you've
> imported "welcome" and "outside_home", but not "dummy".
>
> Regards,
> Malcolm

Thanks it always takes someone else looking at it to see the dumb
stunt
Les
--~--~-~--~~~---~--~~
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-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Using Admin Datepicker in Other Apps

2009-03-01 Thread Chris Spencer

On Sun, Mar 1, 2009 at 10:29 PM, Alex Gaynor  wrote:
>
>
> On Sun, Mar 1, 2009 at 10:25 PM, Chris  wrote:
>>
>> On Feb 21, 10:03 am, Alex Gaynor  wrote:
>> > On Sat, Feb 21, 2009 at 7:48 AM, Chris  wrote:
>> >
>> > > Is it a good idea to reuse admin's JS datepicker widget in other apps,
>> > > and if so, what's the best way?
>> >
>> > > I'm using django.contrib.admin.widgets.AdminDateWidget in my form, and
>> > > I've added these JS tags to my template:
>> >
>> > > admin/DateTimeShortcuts.js
>> > > admin/RelatedObjectLookups.js
>> > > calendar.js
>> > > core.js
>> >
>> > > This gets the datepicker icon to show up, but clicking it does
>> > > nothing. I'm assuming I probably need some CSS includes as well, but
>> > > I'm not sure which CSS files to include, or if the admin style sheets
>> > > will start to conflict with my apps style sheets.
>> >
>> > > Regards,
>> > > Chris
>> >
>> > If you use the admin datepicker in your form, instead of explicitly
>> > listign
>> > the JS to use simply put {{ form.media }} in the head of your HTML, the
>> > widget knows which JS and CSS it uses, so the form will put the
>> > and
>> >  tags in appropriately.
>> >
>> > Alex
>>
>> Thanks, but this doesn't seem to work. Removing my hard-coded JS
>> includes, and replacing them with {{ form.media }} only generates:
>>
>>