Re: Django User (auth) question

2011-08-01 Thread James Matthews
Front end validation doesn't always work like it is supposed to so you
shouldn't really rely on it.

On Mon, Aug 1, 2011 at 6:09 AM, lokesh  wrote:

> hi,
>  i think Best way is front end validation. instead of modifying auth
> models.
> lokesh s
>
>
>
> On Aug 1, 12:43 pm, bruno desthuilliers
>  wrote:
> > On Aug 1, 7:28 am, James DeMichele  wrote:
> >
> > > Hello,
> >
> > > I have a question about tweaking the django.contrib.auth.models.User
> class.
> > > I noticed that Django doesn't allow for overriding of attributes of
> "Field"
> > > instances, such as "email" or "first name". Yet, I'd like to my email
> and
> > > first name fields to be required and I'd also like to have my email
> Field be
> > > unique. What is the recommended way to achieve this?
> >
> > Unless you want to add this as database-level constraints (in which
> > case you have few choices except forking contrib.auth), the obvious
> > solution is to provide your own forms (front-end and/or admin) and add
> > the desired checks / validations there.
>
> --
> 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.
>
>


-- 
http://www.theboxery.com

--

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



Error in ajax request

2010-11-29 Thread James Matthews
Hi,

When I use this rate limiter
http://www.levigross.com/post/1721427025/django-rate-limiting and preform an
ajax request I get this error

django/middleware/common.py", line 84, in process_response
if response.status_code == 404:
AttributeError: 'function' object has no attribute 'status_code'

[CODE]
@ratelimit
@never_cache
def ajaxrequester(request):
if request.is_ajax():
stuff = submitform(request.POST)
return HttpResponse("{'ok':200}",content_type="text/xml")
else:
return HttpResponseForbidden("You don't belong here")
[/CODE]

Any thoughts?



-- 
http://www.goldwatches.com

--

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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: Looking for Lead Django Developer in LA please call 310 571 JOBS

2010-01-24 Thread James Matthews
People should research before posting. But I always enjoy these posts.

On Fri, Jan 22, 2010 at 7:09 PM, James Bennett wrote:

> On Fri, Jan 22, 2010 at 6:48 PM, CerenGuven  wrote:
> > 3-5+ years Django/Python development experience
>
> If you manage to find someone with 5+ years' Django experience, do let me
> know.
>
> (meanwhile, job postings should go to djangogigs.com)
>
>
> --
> "Bureaucrat Conrad, you are technically correct -- the best kind of
> correct."
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@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.
>
>


-- 
http://www.astorandblack.com/

--

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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: FeedMagnet: New Django-powered website just launched

2009-12-26 Thread James Matthews
Just as a side recommendation and this is no way the only way to secure your
site. You may want to move your login portal to another page then the
default /admin page.

On Sat, Dec 26, 2009 at 6:44 PM, OkaMthembo  wrote:

> Great work, Jason & team. I thought it would be interesting to take a peek
> at the timeline.
>
> Season's greetings to all..
>
> Lloyd
>
>
> On Thu, Dec 17, 2009 at 4:10 PM, Jason Ford  wrote:
>
>> Let's see. We started on the Django version in mid-October...so right
>> at 2 months from first code until now. Luke had used Django on a few
>> projects before this one, but the past two months have been my
>> introduction to Django. I really like it - especially compared with
>> some of the PHP frameworks I had dabbled in previously. Not only was
>> it quicker to build in Django, but I feel like our code is much more
>> maintainable too.
>>
>> - Jason
>>
>>
>> On Dec 17, 2:21 am, OkaMthembo  wrote:
>> > Look great, Jason. If i may ask, how long did it take from nought to
>> finish?
>> >
>> > Lloyd
>> >
>> >
>> >
>> >
>> >
>> > On Thu, Dec 17, 2009 at 12:18 AM, Jason Ford 
>> wrote:
>> > > We just launched the public beta of FeedMagnet a few minutes ago. It
>> > > is a Django-powered web app that helps business harness social media.
>> > > It is essentially an aggregator that pulls in content from multiple
>> > > social networks and lets you do things with it - like putting the
>> > > incoming content back up on your own website.
>> >
>> > >http://www.feedmagnet.com
>> >
>> > > Our experience using Django to build the site has been fantastic.
>> > > We're also using CouchDB to store all of the updates and images as
>> > > they come in from Twitter, Flickr, Delicious, RSS feeds, and other
>> > > sources. We're planning to release our custom CouchDB/Python
>> > > integration code as an open source module soon.
>> >
>> > > Thanks to the Django community for the excellent framework,
>> > > documentation, and user groups. We're glad to be a part of the
>> > > community!
>> >
>> > > - Jason
>> >
>> > > --
>> >
>> > > You received this message because you are subscribed to the Google
>> Groups
>> > > "Django users" group.
>> > > To post to this group, send email to django-us...@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.
>> >
>> > --
>> > Regards,
>> > Sithembewena Lloyd Dubehttp://www.lloyddube.com
>>
>> --
>>
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-us...@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.
>>
>>
>>
>
>
> --
> Regards,
> Sithembewena Lloyd Dube
>
> http://www.lloyddube.com
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@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.
>



-- 
http://www.goldwatches.com

--

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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: My Dear Children

2009-10-30 Thread James Matthews
Quiet annoying!

On Fri, Oct 30, 2009 at 3:51 AM, Russell Keith-Magee  wrote:

>
> On Fri, Oct 30, 2009 at 6:18 PM, Crispin Wellington
>  wrote:
> >
> > In my book, posting this kind of thing to a mailing list not about
> > religion constitutes a one way ticket to hell.
>
> FYI - django-users is a moderated mailing list, but Google Groups is
> currently suffering from a publicized exploit (of sorts) [1] that
> allows spammers to bypass the spam control mechanisms in Google
> Groups. This is the source of the increase in spam you (and others)
> may have seen recently.
>
> [1] http://ejohn.org/blog/google-groups-is-dead/
>
> Yours,
> Russ Magee %-)
>
> >
>


-- 
http://www.goldwatches.com

--~--~-~--~~~---~--~~
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: Django Developer Position in New York City, Urgent Stuff

2009-10-14 Thread James Matthews
Posting here more makes this persons vulgar comment more popular. Please
also post your job offering on djangogigs.com so you may have maximum
exposure.

On Wed, Oct 14, 2009 at 2:31 PM, Shaun Hinklein (Sysmind L.L.C) <
shaunhinkl...@gmail.com> wrote:

>
> What does this even mean?
> "Mother fucker so many sending mail?"
>
> Are you incompetent in two languages and vulgarity?
>
>
> On Oct 11, 11:33 am, Chhouk Voeun  wrote:
> > mother fucker so many sending mail i' m bored don't send
> >
> > On Sat, Oct 10, 2009 at 3:04 AM, Shaun Hinklein (Sysmind L.L.C) <
> >
> > shaunhinkl...@gmail.com> wrote:
> >
> > > Hey :)
> > > I'm messaging all of you in regards to a Django Developer position
> > > located in New York City. The position is extremely urgent and the
> > > candidate would start probably next week. If you, or one of your
> > > colleagues, is interested in this position, please contact me with
> > > your resume at 609-897-9670 x104 or at my email at sh...@sysmind.com
> > > Thanks for your time!
> > > Sincerely,
> > > Shaun
> >
> > > The stuff you care about:
> > > There is no rate cap.
> > > The rate is good.
> >
>


-- 
http://www.goldwatches.com

--~--~-~--~~~---~--~~
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: run django on multicore machine

2009-07-23 Thread James Matthews
Django depends more on the python interpreter. If it really matters
recompile python to take advantage of your machine. I am sure you will see
some nice improvements

On Fri, Jul 24, 2009 at 12:08 AM, Some Guy  wrote:

>
> Not sure about my answer but
> I think it matters more that the webserver you are using can take
> advantage of multicore (i.e. mod_python instances running in their own
> thread.)
>
> On Jul 23, 10:26 am, ihome  wrote:
> > Has django been designed to take advantage of multicore machine? Is
> > there a way to boost the performance of a django server on multicore
> > machine? Any thoughts? Thanks.
> >
>


-- 
http://www.goldwatches.com

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



EveryBlock source code public

2009-07-01 Thread James Matthews
And we have another Django blog application! :)

http://blog.everyblock.com/2009/jun/30/source/

-- 
http://www.goldwatches.com

--~--~-~--~~~---~--~~
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: Djangonic?

2009-05-24 Thread James Matthews
Yes, DRY. Don't Repeat Yourself.

On Sun, May 24, 2009 at 5:28 PM, Joshua Partogi wrote:

>
> Is that important? :-D
>
> On May 25, 12:21 am, Roberto Cea  wrote:
> > If an idiomatic Python program is "pythonic", what do you call
> > idiomatic use of Django, "djangonic"?
> >
>


-- 
http://www.goldwatches.com

--~--~-~--~~~---~--~~
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: Best Django host

2009-05-20 Thread James Matthews
I use Slicehost and they are great (but if you are looking for a shared
webhost go with webfaction)

On Wed, May 20, 2009 at 5:58 AM, Eugene Lazutkin
wrote:

>
> From my experience with both hosts webfaction has a better uptime,
> better setup, and less interferences from neighbors, which is important
> on shared hosts.
>
> Thanks,
>
> Eugene Lazutkin
> http://lazutkin.com/
>
> On 05/19/2009 09:41 PM, LeonTheCleaner wrote:
> > Thanks, I saw that link. But why webfaction is better. It has the same
> > manual steps to install django, right? I can see a 1 click install
> > would be good, but why these are better than say dreamhostÉ
> >
> >
> >
> > Thanks.
> >
> > On May 19, 8:06 pm, Zain Memon  wrote:
> >> http://djangofriendly.com/
> >>
> >> On Tue, May 19, 2009 at 6:21 PM, LeonTheCleaner  >wrote:
> >>
> >>
> >>
> >>
> >>
> >>> Hi,
> >>> I currently use dreamhost, but the installation process is very slow.
> >>> Is it me or this process is overly complicated? All I want is to
> >>> install an already written django project but to do that it's like I
> >>> have to write the app myself.
> >>> I read about dreamhost being not the best, but it's listed at #2 on
> >>> django website. Should I use that for my site or buy one of the
> >>> packages that features 1-click install, like:http://djangohosting.ch?
> >>> I would appreciate if someone can help me out.
> >>> Thanks.
> > >
> >
>
>
> >
>


-- 
http://www.astorandblack.com

--~--~-~--~~~---~--~~
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: how to catch the errors throwed by django when django project deployed under fastcgi

2009-05-12 Thread James Matthews
Can you please provide some more details? Where you are seeing the error.
What is crashing,tracelogs etc..

Thanks
James

On Tue, May 12, 2009 at 3:38 PM, linvar  wrote:

>
> hi everyone:
>recently i deployed my django project under the nginx + django +
> fastcgi mode,
>
> i upload my project to the sever and i encounter 'Unhandled Exception
> throwed by app',
>
> but in my development enviroment no error happen.
>
> now i want to catche the django exception just like development
> enviroment,
>
> how can i do? (nginx's error.log seam to be helpless)
>
> thanks advanced!
> >
>


-- 

http://www.jewelerslounge.com

--~--~-~--~~~---~--~~
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: What debugger do you use?

2009-05-12 Thread James Matthews
I use WingIde and love it!

On Mon, May 11, 2009 at 3:53 PM, Joshua Russo wrote:

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


-- 

http://www.jewelerslounge.com

--~--~-~--~~~---~--~~
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: Typo for Django or Like?

2009-03-17 Thread James Matthews
Sure,

Typo is a blogging platform/cms (Like wordpress). I know about Django-cms
and I am wondering if there are any others?

Thanks
James

On Wed, Mar 18, 2009 at 12:02 AM, Alex Gaynor  wrote:

>
>
> On Tue, Mar 17, 2009 at 5:59 PM, James Matthews wrote:
>
>> Hi,
>>
>> I have been using Django now for a while. I am wondering if there are any
>> applications like Typo for RoR in Django or you have to write it by
>> yourself.
>>
>> Thanks
>> James
>>
>> --
>> http://www.astorandblack.com
>>
>>
>>
> Most of us aren't RoR developers so we don't really know what that is, can
> you provide a description of what it is your looking for?
>
> 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
>
> >
>


-- 
http://www.goldwatches.com/

http://www.jewelerslounge.com/

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



Typo for Django or Like?

2009-03-17 Thread James Matthews
Hi,

I have been using Django now for a while. I am wondering if there are any
applications like Typo for RoR in Django or you have to write it by
yourself.

Thanks
James

-- 
http://www.astorandblack.com

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



Fwd: python sql query in django

2009-02-23 Thread James Matthews
-- Forwarded message --
From: May 
Date: Mon, Feb 23, 2009 at 9:17 PM
Subject: python sql query in django
To: python-l...@python.org


I have three tables:

class Technology(models.Model):
   technology = models.CharField(max_length=100, null=True,
blank=True )
   def __unicode__(self):
   return self.technology
   class Meta:
   ordering = ["technology"]

class Publication(models.Model):
   pubtitle = models.TextField(null=True, blank=True)
def __unicode__(self):
   return self.pubtitle
   class Meta:
   ordering = ["pubtitle"]

class Techpubcombo(models.Model):
   technology = models.ForeignKey(Technology)
   publication = models.ForeignKey(Publication)

The user selects a technology from the drop down menu on the web
page.  The technology is retrieved
from the database table and then it must be used to retrieve the
publication attributes, by first going through the Techpubcombo table.

I wrote the select to retrieve the data for the html drop down box:
   technology_list = Technology.objects.all().order_by('technology')

After the user makes a selection, the technology_id is retrieved:
 technology_id = request.POST['technology_id']
   t = get_object_or_404(Technology, pk=technology_id)

Now I need to use the technology_id to get to the publication
attributes

This is where I'm stuck.

I get error messages when I try to do something like:

pub=t.techpubcombo.publications_set()

Ana
--
http://mail.python.org/mailman/listinfo/python-list



-- 
http://www.goldwatches.com/

http://www.jewelerslounge.com/

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



Fwd: [wingide-users] Integrating with django's unit tests

2009-01-14 Thread James Matthews
-- Forwarded message --
From: Philip Gatt 
Date: Wed, Jan 14, 2009 at 7:10 AM
Subject: [wingide-users] Integrating with django's unit tests
To: wingide-us...@wingware.com


Does anyone know how to integrate Wing with Django's unit tests? With my
django projects, I usually run my unit tests with the following command:

./manage.py test

I tried running unit tests within WingIDE, but the problem is that django
does some setup & cleanup work that needs to run before the tests can be
run. I'm not an expert here, but I suspect that we need to tie WingIDE into
django's test runner.

Thanks in advance,
Philip Gatt
_
Wing IDE users list
http://wingware.com/lists/wingide



-- 
http://www.goldwatches.com/

http://www.jewelerslounge.com/

--~--~-~--~~~---~--~~
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: template inheritance

2009-01-11 Thread James Matthews
Not always sometimes you want to show some template code (You have a blog
about web dev) and sometimes you want to nest some code.

On Sun, Jan 11, 2009 at 10:04 PM, Diez B. Roggisch wrote:

> Alex K schrieb:
>
>> While building a website using template inheritance one usually does
>> the following:
>>
>> fetch from database
>> fetch from some more data from database
>> ... << more required computations
>> then at the end render the template with the fetched data
>>
>> Without template inheritance one usually does the following:
>>
>> fetch from database
>> render this part of the site with this fetched data
>> fetch some more data from the database
>> render this other part of the site with the fetched data
>> ...
>> etc
>>
>> The first approach is much more elegant and leads to easier to
>> maintain code. However the user will have to wait till the end of the
>> fetching (long computations) before any rendering can take place. In
>> the second approach however the site loads as we are fetching the data
>> which is more convenient to the user.
>>
>> Am I correct to assume this? Is there a way to get the best of both
>> worlds? Thank you.
>>
>
> I don't think that the question of inheritance or not is really relevant
> here.
>
> It's a matter of how the templating system is written - does it collect all
> the data beforehand, or not, is it potentially using e.g. generators and so
> forth.
>
> And of course how the programmer uses the templating system. does he fetch
> all the data beforehand, or does he use lazy generation approachs - again,
> e.g. generators, or callbacks.
>
> Besides, *usually* the 20-39Kb of a website itself aren't the problem I'd
> say - loading referenced resources is much more of an issue.
>
> And AFAIK the render-mode matters, too. If the site is XHTML-compliant, the
> browser can start the rendering once the HTML is complete - otherwise, it
> might wait until the referenced resources are all loaded to calculate the
> layout.
>
> Diez
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
http://www.astorandblack.com/

--~--~-~--~~~---~--~~
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: Get Request Url

2009-01-11 Thread James Matthews
Thank You (I had the same question today)

2009/1/12 burcu hamamcıoğlu 

> Thanks Bruno request.get_full_path() is enough for me .
>
> Best regards
>
> 09 Ocak 2009 Cuma 18:31 tarihinde bruno desthuilliers <
> bruno.desthuilli...@gmail.com> yazdı:
>
>
>>
>>
>> On 9 jan, 17:06, "burcu hamamcıoğlu"  wrote:
>> > Hi everybody,
>> >
>> > do you know how can i get request url in views.py.
>> >
>> > My url pattern is like
>> (r'^wp/rmain2\.aspx','DisplayPacketApplications2'),
>> > But my link is like :
>> http://wap2.cepoyun.com/wp/rmain2.aspx?pid=194&w=280jhjh
>> >
>> > when i use 'PATH_INFO' i olnly get 'wp/rmain2\.aspx' of the link. How
>> can i
>> > get the full link above ?
>>
>> request.get_full_path() will give you the path + the querystring.
>>
>>
>> http://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpRequest.get_full_path
>>
>> But if what you want is to get the 'pid' and 'w' arguments of the
>> querystring, it might be simpler to use request.GET, ie:
>>
>> def youview(request):
>>   pid = request.GET.get(pid)
>>   w = request.GET.get(w)
>>   # you code here
>>
>> Have a look at the FineManuel(tm) for more about the HttpRequest
>> object:
>> http://docs.djangoproject.com/en/dev/ref/request-response/
>> >>
>>


-- 
http://www.astorandblack.com/

--~--~-~--~~~---~--~~
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: Your IDE of choice

2009-01-06 Thread James Matthews
Yes it is however i still find it to be very powerful and i really like it!

On Tue, Jan 6, 2009 at 2:00 PM, Nikolay Panov wrote:

>
> Emacs (23, +Rope, +auto-complete.el), indeed.
>
> Have a nice day,
>Nikolay.
>
>
>
> On Tue, Jan 6, 2009 at 14:48, HB  wrote:
> >
> > Hey,
> > What is your favorite IDE for coding Django projects?
> > Any ideas about PyDev and ActiveState Komodo IDE?
> > Thanks.
> > >
> >
>
> >
>


-- 
http://www.goldwatches.com/

http://www.jewelerslounge.com/

--~--~-~--~~~---~--~~
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: Your IDE of choice

2009-01-06 Thread James Matthews
Netbeans or WingIDE for me.

On Tue, Jan 6, 2009 at 1:48 PM, HB  wrote:

>
> Hey,
> What is your favorite IDE for coding Django projects?
> Any ideas about PyDev and ActiveState Komodo IDE?
> Thanks.
> >
>


-- 
http://www.goldwatches.com/

http://www.jewelerslounge.com/

--~--~-~--~~~---~--~~
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: Looking for Django-Pinax developers for music production community

2008-12-30 Thread James Matthews
Thank you for your interest in Django. You may also post this job offer on
djangogigs.com

Much Success
James

On Mon, Dec 29, 2008 at 8:00 PM, Pancrazio wrote:

>
> Hi group!
>
> we are a startup working on a community-based music production
> website.
>
> We are looking for Django developers with some expertise in Pinax
> applications and Posgresql database backend.
>
> Knowledge of Ajax programming and frameworks like jQuery will be
> appreciated as well as playing any musical instrument.
>
>
> Please, send an email to j...@buskerlabel.com
>
>
> Thanks for your attention,
>
> Pancrazio and Giulio
> Buskerlabel Srl
>
>
>
>
>
>
> >
>


-- 
http://www.astorandblack.com/

--~--~-~--~~~---~--~~
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: Django with shared host FastCGI

2008-12-30 Thread James Matthews
Which host are you using? I am on dreamhost and it works very nice. also try
searching on google your hosts name and django to see if someone created a
tutorial on it.

On Tue, Dec 30, 2008 at 12:57 AM, James Gregory  wrote:

>
> I tried using the guide here:
> http://docs.djangoproject.com/en/dev/howto/deployment/fastcgi/?from=olddocs
>
> to set up Django using FastCGI.
>
> 1. It kept just hanging with a never ending loading cursor whenever I
> tried going to the fcgi page. I eventually discovered, through immense
> trial and error, that it worked fine if I removed the line "AddHandler
> fastcgi-script .fcgi" from the htaccess file.
>
> 2. As well as adding the directory with python in to sys.path, I found
> I also had to add my project directory and also the project beneath my
> project directory (the latter I think because it is necessary to
> import mysite.settings)
>
> So Is the documentation wrong? Or have I done something wrong and
> somehow fluked getting it to work anyway? Or something else?
>
> >
>


-- 
http://www.astorandblack.com/

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



Installing two Django sites using FastCGI

2008-12-10 Thread James Matthews
I am running one django site on dreamhost and now i want to run another.
When setting up my site i needed to set DJANGO_SETTINGS_MODULE to my current
site. Now i want to run another site... How do i go about this.

Thanks
James

-- 
http://www.astorandblack.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: VPS Hosting - Webkeepers

2008-12-04 Thread James Matthews
I haven't heard anything and I think you should try posting this on
webhosting forums asking them.

On Thu, Dec 4, 2008 at 8:52 PM, John M <[EMAIL PROTECTED]> wrote:

>
> Anyone tried this for django?  http://www.webkeepers.com/index.html
>
> entry level is 6.95/mo, great for QA site I would think.
>
> Just curious
>
> Thanks
>
> John
> >
>


-- 
http://www.astorandblack.com/

http://www.jewelerslounge.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django and Python 2.6

2008-11-10 Thread James Matthews
I just use 2.5.2 and i might upgrade when needed

On Mon, Nov 10, 2008 at 10:44 AM, Kegan <[EMAIL PROTECTED]> wrote:

>
> I am planning to host at WebFaction. Anyone using Django + Python2.6
> at WebFaction ? Care to share ?
>
> On Nov 10, 4:42 pm, m0nonoke <[EMAIL PROTECTED]> wrote:
> > I am using Win32 and there are still quite a few Python 2.6 libs /
> > binaries that are unavailable, such as mod_python. If you are on linux
> > though, you should have no problems.
> >
> > On Nov 10, 8:08 am, Kegan <[EMAIL PROTECTED]> wrote:
> >
> > > Hi,
> >
> > > If I start a new Django project today. Should I not be using Python
> > > 2.6 ?
> >
> > > I have read some threads here that ensure Django 1.0+ have no problem
> > > with Python 2.6. However, is there any other reason you would
> > > discourage using of Python 2.6 (if you 'do' discourage) ? Example,
> > > inadequate 3rd party libraries, etc?
> >
> > > Thanks.
> >
>


-- 
http://www.goldwatches.com/

http://www.jewelerslounge.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Which IDE do you choose with django?

2008-10-12 Thread James Matthews
I could never get Eric to install on Windows

On Sun, Oct 12, 2008 at 10:20 PM, oso che bol <[EMAIL PROTECTED]> wrote:

> Hi,
>
> How do you think about Eric4.2.1 with Django plugin?
>
> Regards,
> -LN
>
>
> On Mon, Oct 13, 2008 at 9:28 AM, reyjexter <[EMAIL PROTECTED]> wrote:
>
>>
>> I use pydev because I'm more of an eclipse guy
>>
>> -rey
>>
>> On Oct 13, 12:19 am, zjffdu <[EMAIL PROTECTED]> wrote:
>> > I am a newbie of django, and want to know which IDE is suit for
>> > django?
>> >
>> > thank your
>>
>>
>
> >
>


-- 
http://www.goldwatches.com/

http://www.jewelerslounge.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Which IDE do you choose with django?

2008-10-12 Thread James Matthews
WingIde for python code and e-text editor for templates (sometimes
notepad++)

On Sun, Oct 12, 2008 at 3:08 PM, Marco Bazzani <[EMAIL PROTECTED]>wrote:

>
>
> On Sun, Oct 12, 2008 at 11:32 PM, Jeff Anderson <[EMAIL PROTECTED]>wrote:
>
>> zjffdu wrote:
>> > I am a newbie of django, and want to know which IDE is suit for
>> > django?
>> >
>> I'd say that it'd be good to continue using whatever IDE you use for
>> your other Python development. Django is, after all, simply Python code
>> that you call from your code.
>>
>> Jeff Anderson
>>
>> I've used VC2008 for coding some asp.net 2.0 web app and while the whole
> asp.net2.0 thing is a pain the IDE is really powerfull I hope somebody
> (maybe aptana) come up with an ide with some facilities like:
> manage.py in a more "visual" way,
> metaclasses (e.g. models, admin, FormFromModel ecc...) autocompletion and
> maybe template helper
> would be really great...
> but this is only my wondering :)
> cheers
>
>
> --
>
> Helen Hayes  - "Age is not important unless you're a cheese."
>
> >
>


-- 
http://www.goldwatches.com/

http://www.jewelerslounge.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django Hosting Survey

2008-10-07 Thread James Matthews
I use dreamhost and am very happy. I have found there services (uptime and
performance) to workout quite well and i love there tech support team.

On Tue, Oct 7, 2008 at 7:55 AM, Benjamin Buch <[EMAIL PROTECTED]> wrote:

>
>
> Am 07.10.2008 um 15:49 schrieb Gour:
>
> > Benjamin> I can recommend djangohosting (http://djangohosting.ch), at
> > Benjamin> least if you're looking for a host in europe...
>
> > Heh, nice to hear...I'm also considering to take it...
> >
> > Is it OK for production site as well?
>
> I'm only hosting personal stuff there, so not much traffic...
> As Jarek said, perhaps it's better to go with dedicated hosting if you
> plan to have loads of traffic.
>
> But you can always ask the folks at djangohosting what they think of
> it directly, they are quite nice and answer quickly.
>
> benjamin
>
>
>
> >
>


-- 
http://www.goldwatches.com/

http://www.jewelerslounge.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django developer need ASAP

2008-09-28 Thread James Matthews
You may also want to post this on djangogigs.com.

Good Luck

James

On Sun, Sep 28, 2008 at 9:38 AM, KnoxvilleDjangoDev <[EMAIL PROTECTED]> wrote:

>
> Apologies if I am not asking this question correctly, but i need some
> assistance. I have a site that was developed in Django and bottom
> line, my developer is nowhere to be found at the last minute. So, I am
> looking for a Django developer that can crank out some last minute
> tweaks in the code, migrate the site over to our server and post it
> live in an emergency time frame. Pay will be strong.
>
> If you can get this done and you are in the Knoxville, TN area Sunday,
> September 28th, send me an email to:
>
> [EMAIL PROTECTED]
>
> Again, my apologies if I went outside the norm on this, but I need the
> help.
>
> Thanks.
>
> >
>


-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Apache with home directory Django

2008-09-26 Thread James Matthews
Yes i am using FastCgi

On Fri, Sep 26, 2008 at 12:46 PM, Erik Allik <[EMAIL PROTECTED]> wrote:

> As stated before, by changing the PYTHONPATH, you it is NOT possible to
> change the python interpreter when using mod_python. Certainly you can load
> your own libraries, but the python itself remains the same.
> Erik
>
> On 26.09.2008, at 22:07, James Matthews wrote:
>
> I run my own installation of python out of my home dir. It's not hard...
> All you need to do is to compile your own version of python (or use your
> hosts mine was 2.3 so i got 2.5.1) and change your PATH. Everything should
> work from there.
> James
>
> On Fri, Sep 26, 2008 at 6:01 AM, Erik Allik <[EMAIL PROTECTED]> wrote:
>
>>
>> I don't think virtualenv will help you set up your project running
>> with Apache. But it's a good practice nevertheless.
>>
>> If your hosting provider supports custom FastCGI handlers/processes,
>> you could look into setting up Django with FastCGI. It's quite easy.
>> Also if you don't have a way to set up FastCGI (or mod_wsgi or
>> mod_python but I doubt your hosting provider lets you do that if
>> they're not a Python hosting provider) but your hosting has a cgi-bin
>> directory, you can use that to get up and running. It uses plain CGI
>> which would be slow if your whole Django project code was to be loaded
>> on each request, but there's a nifty little tool called cgi-fcgi which
>> routes CGI requests so a persistent FastCGI process which it can spawn
>> itself as needed. Just as with "true" FastCGI, this will enable you to
>> set up a completely customized environment for your project.
>>
>> If you have SSH access to the hosting machine which you hopefully do,
>> you should be able to compile anything you might need for the
>> environment such as database drivers or PIL and any other extensions
>> that require compilation.
>>
>> Regards,
>> Erik Allik
>>
>> On 26.09.2008, at 1:39, Graham Dumpleton wrote:
>>
>> >
>> > On Sep 26, 8:26 am, "Xian Chen" <[EMAIL PROTECTED]> wrote:
>> >> Hi,
>> >>
>> >> I want to run my Django app on a shared web server.
>> >>
>> >> As so many people share this server, I install python and
>> >> Django(1.0) under
>> >> my home directory.
>> >>
>> >> How can I configure the Apache with mod_python to make the django
>> >> under my
>> >> directory running?
>> >>
>> >> The server administrator refused to install Django in the /usr/bin
>> >> directory
>> >
>> > With mod_python you cannot make it use a different Python installation
>> > than the one it was compiled with. The best you can manage is to use
>> > virtualenv to build a Python virtual environment in your home
>> > directory where you install all the Python modules/packages you want
>> > and then refer to that.
>> >
>> >  http://pypi.python.org/pypi/virtualenv
>> >
>> > Only problem I see is that documentation for virtualenv seems to have
>> > changed lately and no longer mentions the easy approach for using it
>> > with mod_python. It has some new mechanism mentioned which I can't see
>> > at the moment how it works.
>> >
>> > Graham
>> > >
>>
>>
>>
>>
>
>
> --
> http://www.goldwatches.com/
>
>
>
>
>
> >
>


-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Apache with home directory Django

2008-09-26 Thread James Matthews
I run my own installation of python out of my home dir. It's not hard... All
you need to do is to compile your own version of python (or use your hosts
mine was 2.3 so i got 2.5.1) and change your PATH. Everything should work
from there.
James

On Fri, Sep 26, 2008 at 6:01 AM, Erik Allik <[EMAIL PROTECTED]> wrote:

>
> I don't think virtualenv will help you set up your project running
> with Apache. But it's a good practice nevertheless.
>
> If your hosting provider supports custom FastCGI handlers/processes,
> you could look into setting up Django with FastCGI. It's quite easy.
> Also if you don't have a way to set up FastCGI (or mod_wsgi or
> mod_python but I doubt your hosting provider lets you do that if
> they're not a Python hosting provider) but your hosting has a cgi-bin
> directory, you can use that to get up and running. It uses plain CGI
> which would be slow if your whole Django project code was to be loaded
> on each request, but there's a nifty little tool called cgi-fcgi which
> routes CGI requests so a persistent FastCGI process which it can spawn
> itself as needed. Just as with "true" FastCGI, this will enable you to
> set up a completely customized environment for your project.
>
> If you have SSH access to the hosting machine which you hopefully do,
> you should be able to compile anything you might need for the
> environment such as database drivers or PIL and any other extensions
> that require compilation.
>
> Regards,
> Erik Allik
>
> On 26.09.2008, at 1:39, Graham Dumpleton wrote:
>
> >
> > On Sep 26, 8:26 am, "Xian Chen" <[EMAIL PROTECTED]> wrote:
> >> Hi,
> >>
> >> I want to run my Django app on a shared web server.
> >>
> >> As so many people share this server, I install python and
> >> Django(1.0) under
> >> my home directory.
> >>
> >> How can I configure the Apache with mod_python to make the django
> >> under my
> >> directory running?
> >>
> >> The server administrator refused to install Django in the /usr/bin
> >> directory
> >
> > With mod_python you cannot make it use a different Python installation
> > than the one it was compiled with. The best you can manage is to use
> > virtualenv to build a Python virtual environment in your home
> > directory where you install all the Python modules/packages you want
> > and then refer to that.
> >
> >  http://pypi.python.org/pypi/virtualenv
> >
> > Only problem I see is that documentation for virtualenv seems to have
> > changed lately and no longer mentions the easy approach for using it
> > with mod_python. It has some new mechanism mentioned which I can't see
> > at the moment how it works.
> >
> > Graham
> > >
>
>
> >
>


-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Python/Django Developer

2008-09-18 Thread James Matthews
I am very happy to hear that your company wants to use this great framework.
If i can suggest also posting this job request on djangogigs.com

Thanks

James

On Thu, Sep 18, 2008 at 9:04 AM, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:

>
> I'm working with a company helping them develop their Django based
> software. We're looking for a couple of good django/python developers.
> Developers can telecommute, and the team is great. If you are
> interested, email [EMAIL PROTECTED]
>
>
> --
> CatalyzeMe is an early-stage software company building the next
> generation of agile project management tools.
>
> You will be responsible for helping to create and deploy a scalable
> Software-as-a-Service (SaaS) application built with Django and Python.
> You will be working with other intelligent and driven engineers to
> architect and code on a day-to-day basis. You will have a good deal of
> influence on the decisions we make and the way our software is shaped,
> and a chance to work on interesting problems and craft innovative and
> creative solutions. You should have great engineering skills, superb
> communication skills, and several years of experience working with
> modern computer languages, web technologies, database technologies and
> UNIX/Linux.
>
> Requirements:
>
> * 2+ years of Python or equivalent development experience
> * Experience creating web applications using the Django Framework
> * Experience with Apache, Git SCM and MySQL
> * Ability to work closely with other team members in a collaborative,
> driven environment
> * Demonstrated high-quality coding and software engineering skills,
> including code comments and aggressive source code control
> * __Super Bonus Skill__: experience creating rich front-end software
> using JavaScript libraries like * Scriptaculous/DOJO
> * __Bonus Skill__: some Apache and/or MySQL administration experience
> * __Bonus Skill__: secure programming and architecture
> Excellent communication skills
>
> Interested candidates should send a cover letter and resume (plain
> text or PDF only please).
>
> Candidates can be based anywhere in the USA and can work remotely, but
> should be comfortable traveling to NYC periodically.
> >
>


-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Akismet and Django Comments

2008-09-15 Thread James Matthews
http://sciyoshi.com/blog/2008/aug/27/using-akismet-djangos-new-comments-framework/

-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: maxlength or max_length?

2008-09-15 Thread James Matthews
You need to append the proper path using (1. The export command 2. The
.bash_profile file. ) I used number two, If you want to see the path just
type into the shell export | grep PYTHONPATH

On Sun, Sep 14, 2008 at 9:41 AM, djandrow <[EMAIL PROTECTED]> wrote:

>
> Thanks, its a shared server so I will have to enquire as to what is
> happening concerning the python path.
>
> Regards,
>
> Andrew
> >
>


-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: ***SPAM*** A trick to force autoreloading, in case of changes in views.py

2008-09-12 Thread James Matthews
He might be using --no-reload

On Fri, Sep 12, 2008 at 10:04 AM, David Thole <[EMAIL PROTECTED]> wrote:

>
> Just curious,  are you using the django built in web server for
> development?  The reason why I'm asking is because I don't recall
> having any problems at all when changing a view and it not picking up
> the change.  Every time I save a file, the build in web server
> automatically updates it.
>
> If you're using apache - do you mind if I ask what advantages you have
> with Apache that the built in web server doesn't have?  Not
> questioning, just very curious is all.
>
> -David
> http://www.thedarktrumpet.com
>
> On Sep 12, 11:00 am, n00m <[EMAIL PROTECTED]> wrote:
> > On Sep 12, 6:11 pm, "Keith Eberle" <[EMAIL PROTECTED]> wrote:
> >
> > > i don't think he marked it as spam, but rather "spam assassin" did...
> >
> > > keith
> >
> > If so then my sincere apologies to Thomas Guettler
>
> >
>


-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Creating an Archive

2008-09-12 Thread James Matthews
I would make a script that ran through my database and flagged this as
archived (this should be a boolean flag)

On Fri, Sep 12, 2008 at 1:33 PM, djandrow <[EMAIL PROTECTED]> wrote:

>
> Do i need to pass the months into the view using extra_context?
>
> Andrew
> >
>


-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: New django 1.0 website: www.astronomy2009.org

2008-09-11 Thread James Matthews
Very nice site!

Just one point, I would recommend changing the default admin login page from
http:///admin to something random. This does not substitute a good
password but makes your site a little more secure.

James

P.S Post this website on djangosites.org


On Thu, Sep 11, 2008 at 7:41 AM, Juan Hernandez <[EMAIL PROTECTED]>wrote:

> nice dude :)
>
>
> On Fri, Sep 12, 2008 at 9:59 AM, Rock <[EMAIL PROTECTED]> wrote:
>
>>
>> Very interesting. Nice work.
>>
>> That scrolling calendar widget near the bottom right of the home page
>> needs a reset button.
>> Once you scroll a bit, it fills up with so many events that finding
>> your way back to today is tough.
>> (Or maybe that thing is supplied by Google and so you are hosed as
>> they almost never fix bugs of that nature.)
>> Fortunately the menus provide access to current events so maybe this
>> SNAFU is ignorable.
>>
>> Also I noticed "The Portal to the Universe" project. Are you guys
>> doing that one? If so, how can I help?
>>
>> Rock
>>
>>
>>
>> On Sep 11, 9:16 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>> > Dear all,
>> >
>> > We just released a new website for the International Year of Astronomy
>> > 2009 (http://www.astronomy2009.org). It's based on the improved
>> > versions of the django applications we used forwww.iau.org. We are
>> > still working towards decoupling the core applications from the rest
>> > of the site, so it can be released for the public benefit, however
>> > when time is short, short-cuts are made, so there is still some
>> > cleanup to do ;-)
>> >
>> > Thanks for viewing,
>> > Lars Holm Nielsen
>> > European Space Agency/Hubble
>>
>>
>
> >
>


-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Double Slash in URL

2008-09-08 Thread James Matthews
It's a regex you need to escape both slashes so you are looking at 

On Mon, Sep 8, 2008 at 4:04 AM, Thomas Guettler <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I discovered, that double slashes get through my regular expressions.
> Is it possible to reject URLs with double slashes?
>
> http://.../...//test// (double slash before and after "test")
>
> project urls.py
> {{{
>  urlpatterns = patterns('',
>   # MyApp
>(r'^', include('myapp.urls')),
> }}}
>
> myapp.urls
> {{{
> urlpatterns = patterns('',
>  (r'^test/$', 'modwork.views.test.index'),
> }}}
>
>
> --
> Thomas Guettler, http://www.thomas-guettler.de/
> E-Mail : guettli (*) thomas-guettler
> + de
>
>
> >
>


-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: changing code = restarting django??

2008-09-06 Thread James Matthews
Use Fast-Cgi i do touch dispatch.fcgi

On Fri, Sep 5, 2008 at 6:12 PM, Graham Dumpleton <[EMAIL PROTECTED]
> wrote:

>
>
>
> On Sep 6, 2:39 am, Ilya Braude <[EMAIL PROTECTED]> wrote:
> > Hernan Olivera wrote:
> > >>> In php when you change the code there is no need to restart the
> > >>> server, but in j2ee its necessary to recompile everything. how does
> > >>> that work in django?
> >
> > > You can also configure apache to reload de code. There is a setting,
> > > in httpd.conf:
> > > MaxRequestsPerChild 1
> >
> > > That do the magic
> >
> > In addition to that, I also set:
> > PythonAutoReload On
>
> Which does absolutely nothing for Django and is the default for
> mod_python anyway.
>
> The reason that it does absolutely nothing is that it only applies to
> Python code files which are directly managed by mod_python module
> importer. Any stuff imported off sys.path isn't managed by mod_python
> so that doesn't apply.
>
> You could actually turn that option Off and you will see no difference
> with a Django application and you may even save a few process cycles
> as means mod_python can skip a few checks.
>
> Graham
>
> > in the  section of httpd.conf
> >
> > Also, if you have multiple django projects running at the same time, you
> > cat set
> > PythonInterpreter 
> > in your Location section for each project so that django doesn't mix
> > requests between projects.
> > Replace  with any unique string.
> >
> > Ilya
> >
> > --
> > Ilya Braude
> > Lead Software Engineer
> > Drakontas LLC
> >
>


-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: ANN: Updated Django Cheat Sheet

2008-09-04 Thread James Matthews
Thanks! and i second David's request.

On Thu, Sep 4, 2008 at 8:09 AM, David Larlet <[EMAIL PROTECTED]> wrote:

>
>
> Le 4 sept. 08 à 12:20, Fraser Nevett a écrit :
> >
> > http://www.mercurytide.co.uk/whitepapers/django-cheat-sheet/
> >
> > We welcome any ideas for improvements, corrections, or any other
> > feedback.
>
> Any chance to get a printable copy without colors, just a white
> background?
> My printer will thank you ;-).
>
> Best,
> David
>
>
>
> >
>


-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: ANN: 'Django in Under a Minute' screencast

2008-09-04 Thread James Matthews
I like it. Thank you for enabling me to convert my friends to Django in one
minute!

On Thu, Sep 4, 2008 at 6:04 AM, Ian Ozsvald <[EMAIL PROTECTED]> wrote:

> I've amended yesterday's preview release to reflect the new v1 Django site,
> the finished 'Django in Under a Minute' screencast is available, I trust
> it'll help spread the word to potential new Django users, feel free to embed
> in blog posts:
> http://www.vimeo.com/1665004
> http://showmedo.com/videos/video?name=324&fromSeriesID=324
> http://www.youtube.com/watch?v=72qt-r_W-g4
>
> Andy & Rodolfo - thanks for the feedback.  The screencast is licensed as
> Creative Commons By Attribution 2.0 (commercial use+derivatives allowed).
>
> The screencast is aimed at users who haven't used Django but have probably
> heard of it.  It shows all they need to know to get up and running within 2
> hours including a demo of the tutorial, the Django book, mailing lists and
> 'how to get it'.  Music by Mr. Django Reinhardt.  More background here:
> http://ianozsvald.com/2008/09/04/django-in-under-a-minute-screencast/
>
> If this screencast is well-received then I'll look into making a longer
> screencast accompaniment to the 4-part Django Tutorial series.  I'm the
> co-founder of ShowMeDo, we'd love to get more involved with Django.
>
> Cheers,
> Ian.
>
> --
> Ian Ozsvald (Professional Screencaster)
> [EMAIL PROTECTED]
>
> http://ProCasts.co.uk
> http://IanOzsvald.com + http://ShowMeDo.com
>
> >
>


-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: ANNOUNCE: Django 1.0 released

2008-09-04 Thread James Matthews
Thank you very much for making our jobs fun again with this fantastic
framework!

On Thu, Sep 4, 2008 at 9:37 AM, Wes Winham <[EMAIL PROTECTED]> wrote:

>
> Thanks again for the huge amount of awesome that you guys have brought
> to web development.
>
> On Sep 3, 8:07 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> > The Django team is pleased to announce the release of Django 1.0 this
> evening:
> >
> > Download:http://www.djangoproject.com/download/
> > Release notes:http://docs.djangoproject.com/en/dev/releases/1.0/
> >
> > Have fun with it, and we'll see you in a few days for DjangoCon.
> >
> > --
> > "Bureaucrat Conrad, you are technically correct -- the best kind of
> correct."
> >
>


-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: django web hosting

2008-09-03 Thread James Matthews
I am using Dreamhost and it's works (It's a little bit of pain to install
but they officially are going to support it soon)

On Wed, Sep 3, 2008 at 5:18 AM, <[EMAIL PROTECTED]> wrote:

>
> I had the beta container for Django and to me, compared to say
> WebFaction, it was a pain in the ass, it just didn't feel "natural"
> using the Django container. I am, later this month, moving away from
> WebFaction and getting a dedicated virtual at MediaTemple tho...
>
> On Sep 3, 5:06 am, "Mic Pringle" <[EMAIL PROTECTED]> wrote:
> > I have it on good authority that Media Temple will be launching their
> > Django Container later this week, which is what I'm holding out for.
> >
> > -Mic
> >
> > 2008/9/3 tupixo <[EMAIL PROTECTED]>:
> >
> >
> >
> > >> i am looking for a good web host for my django website.  does anyone
> > >> suggest a good host?  thanks.
> >
> > > I've heard good things about djangohosting.ch and great things about
> > > webfaction.com :)
> > > From what I've heard Django apps are setup in a similar way in both,
> > > but for the rest WebFaction is probably better: support, server speed
> > > and stability, svn/trac available for your project. They probably have
> > > a lot more experience with Django too since they host so many Django
> > > sites.
> >
> > > Kevin.
> >
>


-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



OT: Google Chrome

2008-09-03 Thread James Matthews
HI List,
Today Google released chrome. I have been playing around with it a little
today. Besides for seeing some funny things (try
https://www.gmail.comThanks reddit) It seems to be a very nice
browser. I would like to see where
it's path is going to go. What are your thoughts?

James

-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: name 'admin' is not defined

2008-09-02 Thread James Matthews
Also uncomment the admin.autodiscover() line. (If you are holding a svn
version)

On Tue, Sep 2, 2008 at 11:15 AM, Ronny Haryanto <[EMAIL PROTECTED]> wrote:

>
> On Wed, Sep 3, 2008 at 12:56 AM, Weber Sites <[EMAIL PROTECTED]>
> wrote:
> > I'm trying to follow the Tutorial02 and once i uncomment the admin
> > lines in urls.py i get :
> >
> > ImproperlyConfigured at /mysite/
> > Error while importing URLconf 'mysite.urls': name 'admin' is not defined
>
> This probably sounds silly, but since you don't give any code snippets
> then I can't be sure. Have you uncommented the import line:
>
>from django.contrib import admin
>
> in urls.py?
>
> Ronny
>
> >
>


-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Random HTTP Error 500's - ImproperlyConfigured

2008-09-02 Thread James Matthews
Is it possible that some form of server security is stripping them out?

On Tue, Sep 2, 2008 at 10:28 AM, cwurld <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> My site has recently starting generating a lot of HTTP Error 500's.
> The traceback is always:
>
> ImproperlyConfigured: Error importing request processor module xxx:
> "No module named yyy"
>
> where xxx and yyy are random modules. I know these modules are present
> and working correctly. Most of the time all the modules load without
> errors.
>
> Also, it does not seem to matter what page is being requested.
>
> I am using revision 7153.
>
> Thanks,
> Chuck
>
>
>
> >
>


-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: dispatch.fcgi as text

2008-09-02 Thread James Matthews
Also make sure to set the rewrite handle. On my shared host you need to
enable fcgi then have the dispatch.fcgi in your web root.

On Tue, Sep 2, 2008 at 8:31 AM, Milan Andric <[EMAIL PROTECTED]> wrote:

>
> On Mon, Sep 1, 2008 at 7:19 PM, Ronaldo Z. Afonso
> <[EMAIL PROTECTED]> wrote:
> >
> > Hi everybody,
> >
> > I'm running Django on a shared-hosting provider with Apache and I walked
> > through the documentation about FastCGI of the Django website but when I
> > try to access some page of my web site, instead of seen the html
> > rendered I just see the dispatch.fcgi as text. Does anyone can help me?
> >
> > ps) My dispatch.fcgi is executable.
> >
>
> Ronaldo,
>
> You probably don't have the fastcgi module activated.  In your apache
> or .htaccess config make sure you have something like AddHandler
> fastcgi-script .fcgi .  If you have the AddHandler in your .htaccess
> then maybe Apache is overriding that or it's not in your vhost config.
>  AllowOverride All is another important Apache directive that allows
> you to use AddHandler in your .htaccess, you can check that also.
>
> Are you running your own apache or just using a service?  If you are
> using a service then they may have better instructions about setting
> it up.  If you still can't get it to work then post some configuration
> information, like your .htaccess and vhost config.
>
> --
> Milan
>
> >
>


-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: average posts per month?

2008-09-01 Thread James Matthews
On the sides it should say the stats!

On Mon, Sep 1, 2008 at 6:09 AM, Will Rocisky <[EMAIL PROTECTED]> wrote:

>
> yeah, I am visiting that group :)
>
> On Sep 1, 6:55 pm, "Artis Caune" <[EMAIL PROTECTED]> wrote:
> > On Mon, Sep 1, 2008 at 2:54 PM, Will Rocisky <[EMAIL PROTECTED]> wrote:
> >
> > > How do I find average number of posts per month?
> >
> > For more options, visit this group athttp://
> groups.google.com/group/django-users?hl=en
> > :)
> >
> > --
> > regards,
> > Artis Caune
> >
> > <. CCNA
> > <|
> > <' didii FreeBSD
> >
>


-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Odd error when executing "runserver"

2008-08-28 Thread James Matthews
Did you ldconfig? Did you add the library to your LD_CONFIG?

On Thu, Aug 28, 2008 at 1:53 PM, Malcolm Tredinnick <
[EMAIL PROTECTED]> wrote:

>
>
> On Thu, 2008-08-28 at 13:43 -0700, Huuuze wrote:
> > I recently installed PostgreSQL 8.3.3 and psycopg 2 (latest from
> > SVN).  When I attempt to start Django, I receive this error:
> >
> > File "/Library/Python/2.5/site-packages/django/db/backends/
> > postgresql_psycopg2/base.py", line 20, in 
> > raise ImproperlyConfigured("Error loading psycopg2 module: %s" %
> > e)
> > django.core.exceptions.ImproperlyConfigured: Error loading psycopg2
> > module: dlopen(/Library/Python/2.5/site-packages/psycopg2/_psycopg.so,
> > 2): Library not loaded: /Users/buildfarm/pginstaller/server/staging/
> > osx/lib/libpq.5.dylib
> >   Referenced from: /Library/Python/2.5/site-packages/psycopg2/
> > _psycopg.so
> >   Reason: image not found
> >
> > Is this an issue with Django, psycopg, or both?
>
> Looks like a problem with your psycopg2 package not being properly
> installed, although Im not sure what the exact error message implies,
> not being an OS X users (which seems to be the system you're using).
>
> Regards,
> Malcolm
>
>
>
> >
>


-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Generate admin files. Views and Templates with Django?

2008-08-28 Thread James Matthews
When you create a project you run a command (python manage.py startapp test)
that creates the directory and the model and view files. However if you want
the app to use the admin interface you must explicitly state it in your
models.py file or admin.py (which you need to create) If you wish to
automatically include some files you can specify these files in
\django\conf\project_template

On Thu, Aug 28, 2008 at 8:06 AM, Daniel A. <[EMAIL PROTECTED]> wrote:

>
> I'm a Rails switcher to Django. In Rails there's an option to generate
> all the scaffold files, ie, there's a command line script that creates
> all the files in the project folder of the admin interface. I want to
> know if there's something similar for Django. Thanks
> >
>


-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: setting a form to invalid after having called form.is_valid()

2008-08-27 Thread James Matthews
Whoops I pressed send too soon. In your forms code create a method called
clean_imageForm and add your custom error code there.

On Wed, Aug 27, 2008 at 1:33 PM, James Matthews <[EMAIL PROTECTED]> wrote:

> In your forum code you can add the clean_imageForm and add your cleaning
> code in there.
>
> On Wed, Aug 27, 2008 at 11:39 AM, Rajesh Dhawan <[EMAIL PROTECTED]>
> wrote:
> >
> > Hi,
> >
> >> I have an image upload form and I want to INvalidate the form if the
> >> uploaded image it too big.  How can I get an error message in the form
> >> saying the uploaded image is too big?
> >>
> >> ===Model==
> >> class Image(models.Model):
> >> image = models.ImageField(upload_to='imageupload')
> >>
> >> ===View===
> >> if imageForm.is_valid():
> >> inst = imageForm.save(commit=False)
> >> if inst.image.width > 640:
> >> #TODO: set the error message of this form to 'image is too
> >> big'
> >
> > It's much simpler (and more appropriate) to do this in your form
> > itself. Specifically, add a clean_image method to your form and check
> > the image dimensions there. Then raise a forms.ValidationError on the
> > appropriate condition. Something along these lines would be a start:
> >
> > def clean_image(self):
> >from django.core.files.images import get_image_dimensions
> >image = self.cleaned_data['image']
> >w, h = get_image_dimensions(image)
> >if w > 640:
> >raise forms.ValidationError(u'That image is too wide.')
> >return image
> >
> > -Rajesh D
> > > >
> >
>
>
>
> --
> http://www.goldwatches.com/
>
>


-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: setting a form to invalid after having called form.is_valid()

2008-08-27 Thread James Matthews
In your forum code you can add the clean_imageForm and add your cleaning
code in there.

On Wed, Aug 27, 2008 at 11:39 AM, Rajesh Dhawan <[EMAIL PROTECTED]>
wrote:
>
> Hi,
>
>> I have an image upload form and I want to INvalidate the form if the
>> uploaded image it too big.  How can I get an error message in the form
>> saying the uploaded image is too big?
>>
>> ===Model==
>> class Image(models.Model):
>> image = models.ImageField(upload_to='imageupload')
>>
>> ===View===
>> if imageForm.is_valid():
>> inst = imageForm.save(commit=False)
>> if inst.image.width > 640:
>> #TODO: set the error message of this form to 'image is too
>> big'
>
> It's much simpler (and more appropriate) to do this in your form
> itself. Specifically, add a clean_image method to your form and check
> the image dimensions there. Then raise a forms.ValidationError on the
> appropriate condition. Something along these lines would be a start:
>
> def clean_image(self):
>from django.core.files.images import get_image_dimensions
>image = self.cleaned_data['image']
>w, h = get_image_dimensions(image)
>if w > 640:
>raise forms.ValidationError(u'That image is too wide.')
>return image
>
> -Rajesh D
> >
>



-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: newbie question - import conflicts

2008-08-27 Thread James Matthews

Make the structer

sitedir (manage.py urls.py,settings.py)->app(models.py views.py)
And import it accordingly If your code is running in the sitedir then
it should be able to import it.

On Wed, Aug 27, 2008 at 12:34 PM, Tim Kersten <[EMAIL PROTECTED]> wrote:
>
> Your app folder must be in the current directory, iirc, or in the
> python path for the import to work. Because the project is in the
> python path you'll always be able to import project.app. Rather than
> trying to "import something from app" - which as you said fails, you
> could try "import something", as long as your script is in the same
> folder.
>
> I'm not sure the above works as I'm writing from memory.
>
> Tim ^,^
>
>
>
>
> On Wed, Aug 27, 2008 at 7:49 PM, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
>>
>> All apps works fine in the local development environment, upload it to
>> the server  run syncdb and bang! import conflicts all over the place
>> 'cannot import xxx'. Django apps and standalone apps are fine, it's
>> only with the import statements amongst inter-related models in the
>> project's own apps that the trouble begins. I'm using django SVN and
>> postgresql 8.3.3.
>>
>> I'm sure there is some real simple noobie answer probably related to
>> the pythonpath here i've missed.
>>
>> The actual import statements refer only to the app (  ie. 'from app
>> import model', rather than 'from project.app import model'.)  Adding
>> the project name to the statements does solve this. But what's the
>> cleaner one-stop path solution?
>>
>> Thanks in advance.
>>
>>
>> >
>>
>
> >
>



-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: running Django on a very small VPS

2008-08-27 Thread James Matthews

Use sqllite instead of a regular DB Server. Also set a usage limit on Apache.

You Should be fine. Many people run Django in a shared environment.
like Webfaction and Dreamhost. Where you have a limit on the memory
you can use.

On Wed, Aug 27, 2008 at 1:14 PM, Edwin W <[EMAIL PROTECTED]> wrote:
>
> I was just wondering whether anyone out there has experience with
> running a Django application on a really small VPS.  I'm using Django
> for small personal projects and experimentation, and I found vpslink
> which has a plan with 2.5 GB of disk space but only 64 MB RAM.  I know
> that it won't work out of the box and that I'll have to do some tuning
> to Apache to get it to work, I found this link which suggests it's
> possible:
>
> http://brizzled.clapper.org/id/73
>
> I also came across this discussion in the group:
>
> http://groups.google.com/group/django-users/browse_thread/thread/19b9d007eba5fefd/7582c8e0e214864d?lnk=gst&q=ram#7582c8e0e214864d
>
> So am I crazy to try to push the limits this low?  Any additional tips
> would be appreciated as well!
> >
>



-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: ImportError: No module named core

2008-08-26 Thread James Matthews
He is running on Dreamhost (Debian Linux) WinZip is for windows. Look at
your python patch (export | grep PYTHONPATH) if you need to edit it then do
so in your .bash_profile file (cd ~;nano .bash_profile)

Do you have Fcgi enabled?

Look at the dreamhost wiki they have a good article on how to install
Django.

James

On Tue, Aug 26, 2008 at 1:24 PM, richr <[EMAIL PROTECTED]> wrote:

>
> Make sure the unzipping tool that you used to uncompress the Django
> kit preserves empty files like __init__.py. WinZip, in particular,
> does not always do this.
>
> On Jul 15, 1:42 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> > I've been trying to setup Django on Dreamhost and I haven't had much
> > luck. My latest error / problem is this:
> >
> > django-admin.py
> > Traceback (most recent call last):
> >   File "/home/username/projects/django/trunk/django/bin/django-
> > admin.py", line 2, in ?
> > from django.coreimport managementImportError:Nomodulenamedcore
> >
> > and here is that file:
> >
> > #!/usr/bin/env python
> > from django.coreimport management
> >
> > if __name__ == "__main__":
> > management.execute_from_command_line()
> >
> > I'm using the setup tutorial located at:
> http://www.gordontillman.info/Development/DjangoDreamhost
> >
> > If you can point me in the right direction I would appreciate it.
> >
> > Thanks,
> >
> > Jason
>
> >
>


-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: 500.shtml

2008-08-22 Thread James Matthews
When i run on a shared provider i restart my server by running touch
/mywebdir/dispatch.fcgi


On Fri, Aug 22, 2008 at 6:45 AM, Emily Rodgers <[EMAIL PROTECTED]>wrote:

>
> Hi Ronaldo,
>
> It is not a python script, just a shell script that either runs 'python
> manage.py runfcgi' with various options (the errorlog being one), or kills
> the django process if needed (I guess like you are doing with "kill -HUP
> dispatch.pid").
>
> I think you need to speak to the person who set up your webserver and get
> them to specify an errorlog file, because it sounds like it is just
> throwing
> an error. Or at least find out how they are starting the webserver.
>
> Em
>
> > -Original Message-
> > From: django-users@googlegroups.com
> > [mailto:[EMAIL PROTECTED] On Behalf Of Ronaldo
> > Zacarias Afonso
> > Sent: 22 August 2008 13:45
> > To: django-users@googlegroups.com
> > Subject: Re: 500.shtml
> >
> >
> > Hi Emily,
> >
> > Well, in fact I don't start/stop/restart my webserver. As I
> > am using a shared host, the company where I host my website
> > do those things for me.
> > When I do some modification to my site I only have to issue a
> > "kill -HUP dispatch.pid" command. Some thing that I notice is
> > that when I try to access the admin page, the dispach is
> > killed (I don't know why).
> > Can you send me the python script you have that log things for you?
> >
> > ps) I don't know if that is the right way to deploy jdango,
> > I'm just learning it.
> >
> > Thank you very much
> > Ronaldo.
> >
> > On Fri, Aug 22, 2008 at 4:54 AM, Emily Rodgers
> > <[EMAIL PROTECTED]> wrote:
> > >
> > > How do you start / stop / restart your webserver? If you are using
> > > fastcgi, you may not have it set up to give you an error log.
> > >
> > > I have a script that starts / stops it, and I have
> > specified and error
> > > log for the django web server logs, and sent any errors
> > with my script
> > > commands to a file so that if it doesn't work I can see why:
> > >
> > > python ./manage.py runfcgi [...] errlog=/path/to/weblog >>
> > > runfcgi_errors
> > > 2>&1
> > >
> > > Em
> > >
> > >> -Original Message-
> > >> From: django-users@googlegroups.com
> > >> [mailto:[EMAIL PROTECTED] On Behalf Of
> > Ronaldo Z. Afonso
> > >> Sent: 22 August 2008 01:29
> > >> To: django-users@googlegroups.com
> > >> Subject: Re: 500.shtml
> > >>
> > >>
> > >> Hi Erik,
> > >>
> > >> I'm using a shared host with fast-cgi ...
> > >> I don´t know if I have a log ... I'll ask my hosting
> > service provider.
> > >>
> > >>
> > >> On Fri, 2008-08-22 at 03:24 +0300, Erik Allik wrote:
> > >> > Did you check the web server log? If you're using the built
> > >> in server,
> > >> > just look at the console output it produces. Because we
> > >> can't help you
> > >> > with the information you provided.
> > >> >
> > >> > Erik
> > >> >
> > >> >
> > >> > On 22.08.2008, at 3:05, Ronaldo Z. Afonso wrote:
> > >> >
> > >> > >
> > >> > > Hi all,
> > >> > >
> > >> > > This is my first post to this list. I'm trying to
> > access an Admin
> > >> > > page and I'm being redirected to a 500.shtml page. Does
> > >> anyone know
> > >> > > what could be happening?
> > >> > > I'm using Django version 1.0.beta_1.
> > >> > > Thanks in advance ...
> > >> > >
> > >> > > Ronaldo.
> > >> > >
> > >> > >
> > >> > > >
> > >> >
> > >> >
> > >> > >
> > >>
> > >>
> > >> >
> > >>
> > >
> > >
> > >
> > > >
> > >
> >
> > >
> >
>
>
>
> >
>


-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: lighttpd + fcgi + FORCE_SCRIPT_NAME = admin grief

2008-08-22 Thread James Matthews
Nick,

The issue is with the url rewrite. while django puts in the script name
lighttpd cannot read it because it's rewirting the url. E.g

my FCGI script is mysite.fcgi and when i tried going to the django admin
interface i would get a link like
http://mysite.com/mysite.fcgi/adminhowever lighttpd was rewriting it
to point to / and django was putting in
the script. All you needed to do it tell django to stop and it works wonders
:)

Enjoy!

James

On Thu, Aug 21, 2008 at 11:16 AM, Nick <[EMAIL PROTECTED]> wrote:

>
> Hi Malcolm,
>
> Great; James' suggestion does work perfectly (stupidly obvious; it was
> of course the one thing I hadn't tried) as suggested. If you're trying
> to figure out how I got to this recipe I blindly followed the
> instructions here:
>
>
> http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#ChangedthewayURLpathsaredetermined
>
> Which maybe need to change given that the rest of the config is plain-
> vanilla-as-per-the-tutorial?
>
> Regards,
>
> Nick
>
> On Aug 21, 6:08 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
> wrote:
> > On Thu, 2008-08-21 at 10:02 -0700, James Matthews wrote:
> > > Try FORCE_SCRIPT_NAME="" I use it and it works nicely
> >
> > It's always interesting after landing a feature like this that has a few
> > edge cases to see where the problems distribute themselves. Turns out
> > there are a lot of people using the lighttpd + fastcgi setup -- and this
> > would all be a lot easier if lighttpd had some way of passing through
> > the original, un-rewritten URL as well as the rewritten version (Apache
> > has this facility, for example).
> >
> > My point here (I have one! Honest) is that I'm slowly gathering clues as
> > to what pieces the documentation needs to make a bit clearer and how to
> > tweak the examples to hit some common cases. That being said, I'd also
> > like people to *understand* what's going on, rather than having to
> > follow a "this is what worked for somebody else, so I tried it with hope
> > in my heart" cut-and-paste method of configuration. Over time, we'll
> > tweak the docs a bit and maybe change the quiet robustness of the code.
> >
> > But, for right now: the script name portion should not end in a slash.
> > It is appended to the front of every generated URL. The path info
> > portion (the bit you mention in Django's URLConf) will always start with
> > a slash, although you don't include the leading slash in your URL conf,
> > because that's already matched by the controlling URL resolver portion
> > (your project's main URLConf file is essentially used as an include() in
> > Django's root resolver).
> >
> > Regards,
> > Malcolm
> >
>


-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Python - ImportError: libclntsh.so.10.1: cannot open shared object file

2008-08-21 Thread James Matthews
Hi,


First go to ./manage.py shell and try the same thing "import
djproject.daily_source". If it works there it means it's not a django issue
and your server is stripping out this lib (Suexec)

James

On Thu, Aug 21, 2008 at 1:38 AM, 杨明 <[EMAIL PROTECTED]> wrote:

>
> I got this wrong message:
> Could not import djproject.daily_source. Error was: libclntsh.so.10.1:
> cannot open shared object file: No such file or directory
>
> How can I fix the problem?
>
> Any help would be appreciated,
>
> >
>


-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: lighttpd + fcgi + FORCE_SCRIPT_NAME = admin grief

2008-08-21 Thread James Matthews
Try FORCE_SCRIPT_NAME="" I use it and it works nicely

James




On Thu, Aug 21, 2008 at 9:00 AM, Nick Clarey <[EMAIL PROTECTED]>wrote:

>
> Hi all,
>
> I've been getting my site ported over to 1.0 beta and ran into a
> problem. Basically everything works fine when I follow the
> instructions except logging into the admin site. The source for the
> admin login page shows that the login form submits data to "//admin/";
>
> 
>
> Which is obviously not right; on e.g. Safari it tries to log me into
> http://admin/ which is not going to work! What magic do I need to
> invoke in order to get the admin site working?
>
> Relevant snippet of lighttpd.conf (names changed to protect the
> innocent);
>
> $HTTP["host"] == "bananas.com" {
> server.document-root = "/home/bananas/www/websites"
> fastcgi.server = (
> "/site.fcgi" => (
> "main" => (
> # Use host / port instead of socket for TCP fastcgi
> # "host" => "127.0.0.1",
> # "port" => 3033,
> "socket" => "/home/bananas/django.sock",
> "check-local" => "disable",
> )
> ),
> )
>
> alias.url = (
> "/media/" => "/home/bananas/usr/local/lib/python2.4/
> site-packages/django/contrib/admin/media/",
> "/site_media/" => "/home/bananas/www/websites/media/"
> )
>
> url.rewrite-once = (
> "^(/media.*)$" => "$1",
> "^(/site_media.*)$" => "$1",
> "^/favicon\.ico$" => "/media/favicon.ico",
> "^(/.*)$" => "/site.fcgi$1",
> )
>
> accesslog.filename = env.HOME + "/lighttpd/stage-access.log"
> }
>
> urls.py;
>
> # Uncomment this for admin:
> (r'^admin/(.*)', admin.site.root),
>
> and settings.py has FORCE_SCRIPT_NAME="/" as per instructions given in
> other threads.
>
> Help?
>
> Regards,
>
> Nick
>
> --
> Nick Clarey
> CEO, Airsource Ltd.
> Phone: +44-1223-708370
> Fax : +44-1223-721295
>
> >
>


-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Fwd: Prevalent Python/Django academic software

2008-08-20 Thread James Matthews
-- Forwarded message --
From: Daniel Bickett <[EMAIL PROTECTED]>
Date: Wed, Aug 20, 2008 at 9:07 PM
Subject: Prevalent Python/Django academic software
To: [EMAIL PROTECTED]


Is anyone working on any software at present, using django or python
in general, which serves various academic/course functions, or else
that of student-instructor arbitration? A popular example which my
university uses is the "Blackboard Academic Suite" (wpedia:Blackboard
Inc.), which offers a wide range of course functionality (prof
announcements, forums, content management, grades, file sharing, etc.)

A preliminary search on Google didn't turn up much. I'm interested in
developing this sort of application if there aren't any at large, or
perhaps even if there are. I'm equally interested in looking into
existing options.

Thanks,
dbickett
--
http://mail.python.org/mailman/listinfo/python-list



-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Renaming of mailing lists to avoid user confusion

2008-08-20 Thread James Matthews
I second the on the fact that Malcolm's help has been amazing! Now that we
are thinking of splitting the mailing list why don't we split it according
to parts of django! Each one will have a unique mailing list.
django.contib.admin will be one mailing list etc... jk


If this is really a big issue then make a poll and people can vote on what
they want.

James

P.S I don't use googles web interface for me it's outlook express (mailing
list)
On Wed, Aug 20, 2008 at 2:03 PM, Norman Harman <[EMAIL PROTECTED]>wrote:

>
> Malcolm Tredinnick wrote:
> > Because over the last three years, this group has done an *excellent*
> > job at providing help and support. And, yes, I have the credibility to
> > make that claim: I have never posted a request for support on this list
> > and have posted the most number of mails to the list of anybody over the
> > years.
> >
> > Moving from something available as a mailing list to a web forum will
> > fragment and reduce the audience.
> >
> > Malcolm
>
> As a lng time reader of django-users I can attest to how helpful it
> and Malcolm's post were/are.
>
> A large part of my Django knowledge is due to this list and esp Malcolm,
> thanks btw.  And I'm now happily contributing back answering whatever
> posts I can when I have the time.  But checking a couple times a day
> it's rare to find post that hasn't already been answered.
>
>
> I don't see what problem is trying to be solved.
>
> The legion of Django users is ever growing.  So much so it's now
> relatively easy to get a Python dev job due in large part I believe to
> Django's popularity and successes(at least I got one).  Besides
> excellent base documentation, there are free books, blogs,
> cookbook/snippet site, IRC, and mailing lists.  Help is abundant and in
> many forms.
>
> --
> Norman J. Harman Jr.
> Senior Web Specialist, Austin American-Statesman
> ___
> It's August!  Keep your cool with the Statesman.  Check out our hot
> deals in print and online for back-to-school savings and more!
>
> >
>


-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: how to locate the OS currently logged in user??

2008-08-20 Thread James Matthews
I assume you are using linux. But in windows it's like this

import os
os.environ ['USERPROFILE'].split('\\')[-1]

James

On Wed, Aug 20, 2008 at 9:53 AM, PeteDK <[EMAIL PROTECTED]> wrote:

>
>
>
> On 20 Aug., 17:56, "Emily Rodgers" <[EMAIL PROTECTED]> wrote:
> > > -Original Message-
> > > From: django-users@googlegroups.com
> > > [mailto:[EMAIL PROTECTED] On Behalf Of Steve Holden
> > > Sent: 20 August 2008 16:37
> > > To: django-users@googlegroups.com
> > > Subject: Re: how to locate the OS currently logged in user??
> >
> > > PeteDK wrote:
> > > > Hi.
> >
> > > > I want to retreive the name of the currently logged in user
> > > on the OS
> > > > on which my django app lives.
> > > > Is this possible?
> >
> > > > The thing is. The app is to be used in a private
> > > environment, so all
> > > > the users have to log on to the webserver first(this cant
> > > be changed).
> > > > I would be nice to avoid having them to log into the django app
> > > > afterwards.
> >
> > > > So after they are logged into the webserver it would be
> > > fair to assume
> > > > they are authorised users and if i could just locate their
> > > OS username
> > > > somehow then i could use this username to login the current
> > > user, in
> > > > the background with a standard password.
> >
> > > > I hope you get my meaning:)
> >
> > > > i have looked into the python standard library, and a module named
> > > > getpass() however i cant get i to work:-(
> >
> > > > i hope someone has a clever idea to solve this problem.
> >
> > > You seem to be assuming that the server is always accessed
> > > from a browser running on the same machine. You should
> > > guarantee this by running Django only on the 127.0.0.1
> > > interface. As has already been pointed out, they need not be
> > > the only user logged on, however.
> >
> > It does seem like a really odd thing to do. Are you sure you don't just
> > want to find out the user viewing the webapp via a browser (who has
> > already authenticated in a system other than django)?
>
> Well yeah that is what i want. I'm sorry if i haven't explained myself
> well enough.
> The system works like this: The user follows a link to the django app.
> The app is stored on a server which requires authentication. (This way
> the users can use the same password for the server as they use on the
> rest of the system.) What i want is i want to know the user who is
> trying to view the django app, so that i can, in the background, log
> this user into the django app. This way they dont have to have 2
> separate user accounts with 2 separate passwords.
>
> So i dont need to know the users password, just the username. Because
> then i can use this to find a corresponding username in the django app
> and log the user in this way. i hope i made it more clear :-)
>
> But actually i think the first solution would work find:
>
> namelist = [line.split()[0] for line in commands.getoutput("/usr/bin/
> who").split("\n")]
> userLoggingIn = namelist[-1]
>
> unless there can be problems with using the latest user entry in the
> namelist?
> >
>


-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: django deploymennts

2008-08-19 Thread James Matthews
To deploy my apps i use a set of bash and python scripts. They are useful
because of unique environment i am deploy in.

On Tue, Aug 19, 2008 at 8:25 AM, Norman Harman <[EMAIL PROTECTED]>wrote:

>
> Robin wrote:
> > Hello,
> >
> > I am trying to decide which tool should I use to deploy my django
> > based application, and I have some candidates and want to know what
> > are your opinion about this. My deployments will be in more than one
> > server.
> >
> > First I though about Capistrano, but I don't want to install/learn
> > another language, so I look at some of the python based deployment
> > tools. I found this ones:
>
> Installing is trivial (apt-get/yum install ruby).  Learning Ruby is not
> necessary Having zero ruby knowledge(I still do) I was able to hack onto
> the Capistrano built in deployment recipes to do some very different
> than normal things.
>
> Capistrano has a lot of batteries included, I highly recommend
> reconsidering looking at it.
>
> > * Paver : http://www.blueskyonmars.com/projects/paver/
> > * Vellum: http://www.zedshaw.com/projects/vellum/
> > * Fabric: http://pypi.python.org/pypi/Fabric/0.0.3:
> > * zc.buildout: http://pypi.python.org/pypi/zc.buildout
>
>  > Does any of you have experience or pros-cons about any of this tools
>  > or any other ?
>
> buildout isn't really for deployments, I didn't get past reading about
> it before i decided it was not tool I'd want to use for deployment
>
> > My deployment procedure will be, I hope, an easy one:
> >
> > * download the version I want to deploy of the project (from
> > subversion)
> > * update database if needed
> > * restart application server if needed
>
> Deployments (or deployment procedures) are never as clean as one hopes.
>
> --
> Norman J. Harman Jr.
> Senior Web Specialist, Austin American-Statesman
> ___
> It's August!  Keep your cool with the Statesman.  Check out our hot
> deals in print and online for back-to-school savings and more!
>
> >
>


-- 
http://www.goldwatches.com/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django Newbie

2008-07-22 Thread James Matthews
I would recommend on learning python before looking at django. It would
explain why things have to be in your PYTHONPATH and answer many questions
Etc..

On Tue, Jul 22, 2008 at 2:01 AM, Kenneth Gonsalves <[EMAIL PROTECTED]>
wrote:

>
>
> On 22-Jul-08, at 12:36 PM, Sthembile Ngidi wrote:
>
> > I'm relatively new to python and I want to use django to create a
> > website.
>
> are you a newbie in web programming? Please tell us your previous
> experience in web programming so we can guide you.
>
> --
>
> regards
> kg
> http://lawgon.livejournal.com
> http://nrcfosshelpline.in/code/
>
>
>
>
> >
>


-- 
http://www.jewelerslounge.com
http://www.goldwatches.com/mens/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django installation issue

2008-07-17 Thread James Matthews
I don't see much but it seems your aren't mapping you urls properly. Please
post your urls.py on http://dpaste.com/ then email the link.

On Thu, Jul 17, 2008 at 4:48 AM, zbiju <[EMAIL PROTECTED]> wrote:

>
> Hi guys,
>
> I'm noobie with python and django but I would like to try it.
> I have installed it as docs say but I have problem running it.
>
> I'm getting error:
> "Error while importing URLconf 'pyta.urls': No module named
> core.handlers.wsgi"
> which is a bit weird because in bootstrap file it seems to load this
> module (or at least it knows where that module is).
>
> This is what I'm getting when I type url in a browser:
>
> Environment:
>
> Request Method: GET
> Request URL: http://zbiju.rootnode.net/pyta/
> Django Version: 0.97-pre-SVN-7939
> Python Version: 2.4.4
> Installed Applications:
> ['django.contrib.auth',
>  'django.contrib.contenttypes',
>  'django.contrib.sessions',
>  'django.contrib.sites']
> Installed Middleware:
> ('django.middleware.common.CommonMiddleware',
>  'django.contrib.sessions.middleware.SessionMiddleware',
>  'django.contrib.auth.middleware.AuthenticationMiddleware',
>  'django.middleware.doc.XViewMiddleware')
>
>
> Traceback:
> File "/home2/zbiju/www/django/django/core/handlers/base.py" in
> get_response
>  76. callback, callback_args, callback_kwargs =
> resolver.resolve(request.path)
> File "/home2/zbiju/www/django/django/core/urlresolvers.py" in resolve
>  231. for pattern in self.urlconf_module.urlpatterns:
> File "/home2/zbiju/www/django/django/core/urlresolvers.py" in
> _get_urlconf_module
>  255. raise ImproperlyConfigured, "Error while
> importing URLconf %r: %s" % (self.urlconf_name, e)
>
> Exception Type: ImproperlyConfigured at /pyta/
> Exception Value: Error while importing URLconf 'pyta.urls': No module
> named core.handlers.wsgi
>
>
> Thank in advance for any help.
> Marcin
>
> >
>


-- 
http://search.goldwatches.com/?Search=Movado+Watches
http://www.jewelerslounge.com
http://www.goldwatches.com

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Root Access

2008-07-12 Thread James Matthews
I have used dreamhost and hosted Django. While root is the best Django ran
smoothly!

On Sat, Jul 12, 2008 at 10:22 PM, Tim Johnson <[EMAIL PROTECTED]> wrote:

>
> Hi:
> Just wanted to thank all of you for the responses.
> Good data set!
> "Not bad for two fingers"
> cheers
> tim
>
> >
>


-- 
http://search.goldwatches.com/?Search=Movado+Watches
http://www.jewelerslounge.com
http://www.goldwatches.com

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Stability of trunk and 1.0 target: experience, testimonials?

2008-07-02 Thread James Matthews
Great!

On Wed, Jul 2, 2008 at 8:43 PM, J Meier <[EMAIL PROTECTED]> wrote:

>
> Thank you, everyone. That was exactly what I needed. It looks like
> we'll be starting a prototype on Django trunk targeting 1.0 this week.
>
> Jim Meier
> >
>


-- 
http://search.goldwatches.com/?Search=Movado+Watches
http://www.jewelerslounge.com
http://www.goldwatches.com

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django - Apache - mod_python setup

2008-06-24 Thread James Matthews
After that you need to setup a view in django and point that to a page (or
function)

On Tue, Jun 24, 2008 at 5:37 AM, Karen Tracey <[EMAIL PROTECTED]> wrote:

> On Mon, Jun 23, 2008 at 7:38 PM, Nagu <[EMAIL PROTECTED]> wrote:
>
>>
>> Hi,
>>
>> I am very new to programming in general. I start to teach myself some
>> python and django stuff.
>>
>> I followed the instructions in the chapter 3 of the book Professional
>> Python Frameworks by Moore, Budd, and Wright. Just to give some idea,
>> it is a simple pet owner site, select the owner and it displays their
>> pets in the browser.
>>
>> It is working fine from a localhost, i.e. when I type
>> http://127.0.0.1:8000/petview.
>> Now I want to set it up on a local area network so that I can access
>> it from other machine, for example, http://cobra.mycompany.com/petview.
>> Here Cobra is the my machine name and mycompany.com is my company
>> domain. I do not have access to tinker with mycompany.com. Cobra is a
>> windows xp machine attached to the mycompany.com
>>
>> I installed postgresSQL and Apache and mod_python on the machine
>> cobra. Apache is running OK by default. I ran http://cobra.mycompany.com
>> from another machine, and it displays OK. But when I type
>> http://cobra.mycompany.com/petview, I get a 404. I am sure that I am
>> doing wrong. I want to learn how to set this kind of settings. Please
>> advice.
>>
>
> Did you follow the instructions here:
>
> http://www.djangoproject.com/documentation/modpython/
>
> for how to configure Apache/mod_python to forward requests to your Django
> code?
>
> Karen
>
> >
>


-- 
http://search.goldwatches.com/?Search=Movado+Watches
http://www.jewelerslounge.com
http://www.goldwatches.com

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: site searching

2008-06-24 Thread James Matthews
What are you looking to search? If it's dynamic pages why not search the
Database

On Tue, Jun 24, 2008 at 10:39 AM, bruno desthuilliers <
[EMAIL PROTECTED]> wrote:

>
>
>
> On 23 juin, 17:55, "José Moreira" <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > yes while seaching the mailing list i found django-search. More bellow.
> >
> > 2008/6/23 bruno desthuilliers <[EMAIL PROTECTED]>:
> >
> >
> (snip)
> > > c) generic configurable indexer/searcher module using signals to
> > > reindex created or modified items
> >
> > > I'm currently working on such a beast (loosely based on django-
> > > search's 'simple' backend, but using zope's textindexng3 package for
> > > full-text indexing).
> >
> > its very interesting
>
> I can send you a snapshot, but be warned, this is a work in progress.
>
>
> >
>


-- 
http://search.goldwatches.com/?Search=Movado+Watches
http://www.jewelerslounge.com
http://www.goldwatches.com

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django HTML Editor

2008-06-20 Thread James Matthews
Code completion is not about knowing or not knowing a language well. It
saves time when you don't have to type in all the
method/function/class/variable names.



On Thu, Jun 19, 2008 at 9:22 AM, Gene Campbell <[EMAIL PROTECTED]>
wrote:

>
> I just wrote that I use jEdit and although it's not great, I don't
> care.  But, now after reading this thread, I'm starting to care.  I'm
> learning python and django at the same time, and having some handy
> "code intelligence" would be nice - linking method usages to defs and
> code completion.  I don't know if jEdit can do this with Python, I've
> tried to get sidekick and the various py pluggins going, and honestly
> if they just don't work or are supposed to work, but I don't have time
> to sort it out.  I probably have the syntax highlighting setup wrong,
> or it's buggy.
>
> Anyway, I'm looking at Komodo.  When you know a language really well,
> code completion isn't as important, but when you're learning it's
> awesome.  It keeps you from making those context switches to a book or
> online reference.
>
> I'll likely miss some of the editing features of jEdit like vertical
> selections.   It really is the best editor I've ever used, and
> probably ever will use.  (Though I really bummed that I have to use
> Java 1.4 just to get middle mouse pasting to work from Xwindows to a
> jEdit buffers.)
>
> I wish the perfect editor/IDE would materialize!!!
>
> gene
>
>
> On Thu, Jun 19, 2008 at 3:57 PM, Tai <[EMAIL PROTECTED]> wrote:
> >
> > I've been using jEdit for years as well.
> >
> > O. Rutherford has created Django and Djagno+HTML modes available on
> > his personal site.  The status says that they are not committed, and
> > that he has split the original Django mode.
> >
> > http://www.rutherfurd.net/jedit/modes/index.html#django
> >
> > Cheers,
> >
> > Tai
> >
> > On Jun 15, 2:23 am, "Gene Campbell" <[EMAIL PROTECTED]> wrote:
> >> jEdit - I've used it for years; it is good but not great for django.
> >> But, it's just a killer editor, I don't care.
> >>
> >>
> >>
> >> On Sun, Jun 15, 2008 at 3:42 AM, mario <[EMAIL PROTECTED]> wrote:
> >>
> >> > Hi,
> >>
> >> > Have you tried using TinyMCE. It works and is compatible with Django
> >> > Templates including bundled templates such as flatpages, etc.
> >> > The URL ishttp://tinymce.moxiecode.com/?id=powered_by_tinymce_mini.
> >> > Also check out Bill De Hora web site,
> >> >
> http://www.dehora.net/journal/2006/05/using_tinymce_in_djangos_admin.
> >> > It has excellent examples how to integate TinyMCE with Django.
> >>
> >> > I personally use it in my web site. Good luck!
> >>
> >> > Sincerely yours,
> >>
> >> > Mario
> >>
> >> > On Jun 14, 2:06 am, Ngu Soon Hui <[EMAIL PROTECTED]> wrote:
> >> >> I want a free HTML editor that is compatible with Django template's
> >> >> syntax. I just want to edit my Django power application's HTML
> faster.
> >> >> When I say compatible, I mean that the editor shouldn't screw up all
> >> >> the Django template's tags and variables.
> >>
> >> >> I used some HTML editors out there, but they are not compatible with
> >> >> Django template in that they don't recognize the tags. I am not sure
> >> >> whether there are any HTML editor that can do this job.
> >>
> >> --
> >> Picante Solutions Limited
> >> e: [EMAIL PROTECTED]
> >> w: 06 757 9488
> >
> > >
> >
>
>
>
> --
> Picante Solutions Limited
> e: [EMAIL PROTECTED]
> w: 06 757 9488
>
> >
>


-- 
http://search.goldwatches.com/?Search=Movado+Watches
http://www.jewelerslounge.com
http://www.goldwatches.com

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: library import issue.

2008-06-17 Thread James Matthews
The server is running suExec therefore Apache executes as the user. So it
should be able to read my library.

James

On Mon, Jun 16, 2008 at 5:08 PM, Karen Tracey <[EMAIL PROTECTED]> wrote:

> On Mon, Jun 16, 2008 at 9:19 AM, James Matthews <[EMAIL PROTECTED]>
> wrote:
>
>> Karen
>>
>> The library path is in both LD_LIBRARY_PATH and the PYTHONPATH
>
>
> You mean you've specified it in the appropriate config file?  Based on the
> results, though, it doesn't seem to be working.  What, exactly, did you
> specify where?  I'm assuming you are using a setup similar to what is
> described here:
>
>
> http://www.djangoproject.com/documentation/fastcgi/#running-django-on-a-shared-hosting-provider-with-apache
>
> ?
>
> If so then a couple of things occur to me.  It sounds like your code will
> be running in the context of an Apache-spawned process, so a path like
> "~/opt/lib" as you mention in your first mail won't, I don't think, resolve
> to your home directory's opt/lib.  Did you fully-specify the path wherever
> you put it?  The other possibility is that the Apache-spawned process does
> not have permission to read this directory under your home directory.  Have
> you changed permissions so that the Apache process can read this directory?
>
> Karen
>
>
> >
>


-- 
http://search.goldwatches.com/?Search=Movado+Watches
http://www.jewelerslounge.com
http://www.goldwatches.com

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: library import issue.

2008-06-16 Thread James Matthews
Karen

The library path is in both LD_LIBRARY_PATH and the PYTHONPATH

On Mon, Jun 16, 2008 at 3:09 PM, Karen Tracey <[EMAIL PROTECTED]> wrote:

> On Mon, Jun 16, 2008 at 8:48 AM, James Matthews <[EMAIL PROTECTED]>
> wrote:
>
>> Sorry,
>>
>> I am running Django in a shared hosting environment, Apache, Fcgi
>>
>
> Then you need to make sure that whatever modifications you had to make in
> your user shell environment to get the import to work are also in effect
> when Django is running under Apache/FastCGI.  Unfortunately I don't have
> experience with that setup so can't give any specific guidance but
> presumably there are config files or something that would allow you to
> influence the LD_LIBRARY_PATH and python path of the code you run in this
> setup?
>
> Karen
>
> >
>


-- 
http://search.goldwatches.com/?Search=Movado+Watches
http://www.jewelerslounge.com
http://www.goldwatches.com

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: library import issue.

2008-06-16 Thread James Matthews
Sorry,

I am running Django in a shared hosting environment, Apache, Fcgi

James

On Mon, Jun 16, 2008 at 2:43 PM, Karen Tracey <[EMAIL PROTECTED]> wrote:

> On Mon, Jun 16, 2008 at 6:07 AM, James Matthews <[EMAIL PROTECTED]>
> wrote:
>
>> Hi,
>>
>> I am trying to import a library that is in a non-standard location
>> ~/opt/lib (I am in a shared environment) and i added it to my
>> "LD_LIBRARY_PATH" however Django tells me it cannot find it and me a 500
>> error.
>>
>> In python i can import the library but not in Django. I compiled this
>> library using Swig.
>>
>> Details:
>>
>> Error was: libhdate.so.1: cannot open shared object file: No such file or
>> directory
>>
>> but in python...
>> [machine]$ python -c "from hdate import Hdate"
>> [machine]$
>>
>>
>> Any help?
>>
>
> You do not mention how you are running Django.  Using the development
> server, under Apache, etc?  Changes you have made to get the import to work
> for your own user login will not necessarily be in effect when running under
> Apache, for instance.  So that could be part of the problem, but it's hard
> to be sure without more specifics of the environment in which you are
> running Django.
>
> Karen
>
> >
>


-- 
http://search.goldwatches.com/?Search=Movado+Watches
http://www.jewelerslounge.com
http://www.goldwatches.com

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: library import issue.

2008-06-16 Thread James Matthews
Thank You very much Peter. However this is the output of what you told me to
do. And i don't get an import error when i try to import Hdate under the
django shell

Python 2.5.2 (r252:60911, Mar 30 2008, 02:18:56)
[GCC 3.3.5 (Debian 1:3.3.5-13)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import hdate
>>> import sys
>>> from pprint import pprint
>>> pprint(sys.path)
['',
 '/home/user/opt/lib/python2.5/site-packages/setuptools-0.6c5-py2.5.egg',
 
'/home/user/opt/lib/python2.5/site-packages/MySQL_python-1.2.2-py2.5-linux-i686.egg',
 '/home/.debase/user',
 '/home/user/opt/lib/python2.5/site-packages',
 '/home/user/django/django_src',
 '/home/user/django/django_projects',
 '/home/user/opt/lib',
 '/home/user/opt/lib/python25.zip',
 '/home/user/opt/lib/python2.5',
 '/home/user/opt/lib/python2.5/plat-linux2',
 '/home/user/opt/lib/python2.5/lib-tk',
 '/home/user/opt/lib/python2.5/lib-dynload',
 '/home/user/opt/lib/python2.5/site-packages/PIL']
>>>


On Mon, Jun 16, 2008 at 12:39 PM, Peter Bengtsson <[EMAIL PROTECTED]> wrote:

>
>
>
> On Jun 16, 11:07 am, "James Matthews" <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I am trying to import a library that is in a non-standard location
> ~/opt/lib
> > (I am in a shared environment) and i added it to my "LD_LIBRARY_PATH"
> > however Django tells me it cannot find it and me a 500 error.
> >
> > In python i can import the library but not in Django. I compiled this
> > library using Swig.
> >
> > Details:
> >
> > Error was: libhdate.so.1: cannot open shared object file: No such file or
> > directory
> >
> > but in python...
> > [machine]$ python -c "from hdate import Hdate"
> > [machine]$
> >
>
> Clearly it's a different sys.path in the two pythons.
> Assert yourself first that you're using the exact same python binary
> for django and for python on the command line.
> Try this:
> $ python
> >>> import hdate
> >>> import sys
> >>> from pprint import pprint
> >>> pprint(sys.path)
>
> Then try it from the django shell
> $ python manage.py shell
> >>> import hdate
> ... ImportError ...
> >>> import sys
> >>> from pprint import pprint
> >>> pprint(sys.path)
>
> Then compare and find out what's going on.
>
>
>
> > Any help?
> >
> > James
> >
> > --
> http://search.goldwatches.com/?Search=Movado+Watcheshttp://www.jewelerslounge.comhttp://www.goldwatches.com
>
> >
>


-- 
http://search.goldwatches.com/?Search=Movado+Watches
http://www.jewelerslounge.com
http://www.goldwatches.com

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



library import issue.

2008-06-16 Thread James Matthews
Hi,

I am trying to import a library that is in a non-standard location ~/opt/lib
(I am in a shared environment) and i added it to my "LD_LIBRARY_PATH"
however Django tells me it cannot find it and me a 500 error.

In python i can import the library but not in Django. I compiled this
library using Swig.

Details:

Error was: libhdate.so.1: cannot open shared object file: No such file or
directory

but in python...
[machine]$ python -c "from hdate import Hdate"
[machine]$


Any help?

James


--
http://search.goldwatches.com/?Search=Movado+Watches
http://www.jewelerslounge.com
http://www.goldwatches.com

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Lighttpd Vs Apache

2008-06-15 Thread James Matthews
Hi,

I am now debating on if i should use Apache with mod_python or Lighttpd with
fastcgi. I won't be serving many files (just one webpage for now...) But
that page will preform be doing many calculation/database query's. Which one
would you guys recommend. Pros and Cons

Thanks
James

-- 
http://search.goldwatches.com/?Search=Movado+Watches
http://www.jewelerslounge.com
http://www.goldwatches.com

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django HTML Editor

2008-06-15 Thread James Matthews
Thanks for this post! I am now trying Komodo Edit out.

On Sun, Jun 15, 2008 at 8:23 AM, Gene Campbell <[EMAIL PROTECTED]>
wrote:

>
> jEdit - I've used it for years; it is good but not great for django.
> But, it's just a killer editor, I don't care.
>
>
> On Sun, Jun 15, 2008 at 3:42 AM, mario <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > Have you tried using TinyMCE. It works and is compatible with Django
> > Templates including bundled templates such as flatpages, etc.
> > The URL is http://tinymce.moxiecode.com/?id=powered_by_tinymce_mini.
> > Also check out Bill De Hora web site,
> >
> http://www.dehora.net/journal/2006/05/using_tinymce_in_djangos_admin.html.
> > It has excellent examples how to integate TinyMCE with Django.
> >
> > I personally use it in my web site. Good luck!
> >
> > Sincerely yours,
> >
> > Mario
> >
> > On Jun 14, 2:06 am, Ngu Soon Hui <[EMAIL PROTECTED]> wrote:
> >> I want a free HTML editor that is compatible with Django template's
> >> syntax. I just want to edit my Django power application's HTML faster.
> >> When I say compatible, I mean that the editor shouldn't screw up all
> >> the Django template's tags and variables.
> >>
> >> I used some HTML editors out there, but they are not compatible with
> >> Django template in that they don't recognize the tags. I am not sure
> >> whether there are any HTML editor that can do this job.
> >
> > >
> >
>
>
>
> --
> Picante Solutions Limited
> e: [EMAIL PROTECTED]
> w: 06 757 9488
>
> >
>


-- 
http://search.goldwatches.com/?Search=Movado+Watches
http://www.jewelerslounge.com
http://www.goldwatches.com

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Can Someone Do something about ALL THIS SPAM

2008-06-05 Thread James Matthews
Dear List

I hate having to remove the spam emails that come through the Django mailing
list! Is there anything we can do it?

James

-- 
http://search.goldwatches.com/?Search=Movado+Watches
http://www.jewelerslounge.com
http://www.goldwatches.com

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: "Includes" directory?

2008-06-03 Thread James Matthews
and Welcome to Django!

On Tue, Jun 3, 2008 at 9:05 AM, Kenneth Gonsalves <[EMAIL PROTECTED]>
wrote:

>
>
> On 02-Jun-08, at 11:59 PM, Huuuze wrote:
>
> > I'm new to Django, so please be gentle.  Basic question: when
> > developing a web app, I've typically created an "includes" directory
> > which stores commonly used functions or methods.  From a best practice
> > standpoint, is it recommended that I create an "includes" directory
> > (not application) within my project?  If so, I'm guessing I can
> > reference it as "myproject.includes".
> >
> > Please let me know if this approach is frowned upon in favor of some
> > other paradigm.  If so, can you show me an example of the preferred
> > method?
>
> there is no preferred method or best practices for directory
> structure - you may put anything anywhere on the filesystem as long
> as you give django the correct path to the directory.
>
> --
>
> regards
> kg
> http://lawgon.livejournal.com
> http://nrcfosshelpline.in/code/
>
>
>
>
> >
>


-- 
http://search.goldwatches.com/?Search=Movado+Watches
http://www.jewelerslounge.com
http://www.goldwatches.com

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: setup issues with Django

2008-05-25 Thread James Matthews
It looks nice. I am going to try it out

On Sun, May 25, 2008 at 7:01 PM, Joseph <[EMAIL PROTECTED]> wrote:

>
> There is instant Django: http://www.instantdjango.com/download.html
> No install. Just unzip and it works well. then you can update your
> copy of Django as well. Works well for me.
>
> Joseph
> http://www.jjude.com
>
> On May 25, 6:35 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> > On Sun, May 25, 2008 at 8:43 AM, wheresdave <[EMAIL PROTECTED]>
> wrote:
> >
> > > I have been trying to setup django on a windows XP machine for almost
> > > 4 hours now. Each step of the way I run into a new error that I have
> > > to find a workaround for, which is very unfortunate.
> >
> > > I have django 0.96.2 in my site-packages directory, and python is on
> > > the root of C. I have also added python to my path per instructions i
> > > found on another site, and python shell is now working fine.
> >
> > > Now, when I try to run django-admin.py startproject mysite i get the
> > > following error
> >
> > > ImportError: No module named django.core
> >
> > That would mean Django is not properly installed in your Python's
> > site-packages directory.  If it were there, the import of django.core
> would
> > work.  What, exactly, do you have under
> c:\Python\Lib\site-packages\django?
> > You should have subdirectories named bin, conf, contrib, core, etc -- a
> > total of 19 subdirectories and an __init__.py file.
> >
> > I ran many google searches on this error and none of the docs came
> >
> > > back with anything useful to solve my challenge.
> >
> > > I went to the IRC forums and they told me that Django is not on my
> > > path. Well, i had already tried adding to my path per the same
> > > instructions provided for adding python to your path, and the same
> > > error persisted.
> >
> > An alternative way to run things is to not put Django in your
> site-packages
> > directory, but rather include it on you PYTHONPATH (not PATH) environment
> > variable.  It sounds like this is what people were suggesting.  But, if
> > you've put it in site-packages then this is not necessary, better to
> figure
> > out what is wrong with your site-packages installation.
> >
> > I was then told to install SVN and pull from the trunk. I do not feel
> >
> > > that is a valid workaround, because honestly i do not feel it will
> > > solve the problem.
> >
> > Well, the SVN version has over a years worth of improvements and bug
> fixes
> > compared tot he 0.96 release, which has only a couple of security fixes
> that
> > have been applied since its release.  Some of those fixes were to the
> > setup.py install script, and for Windows specifically, but if you really
> > want to stick with 0.96.2 it can be made to work.  Personally, though, I
> too
> > would recommend SVN over the old release, just in general.
> >
> > Karen
> >
>


-- 
http://search.goldwatches.com/?Search=Movado+Watches
http://www.jewelerslounge.com
http://www.goldwatches.com/mens/

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Sorry to butt in. I'm just trying to get my message out.

2008-05-04 Thread James Matthews
Google has to do something about these spam issues! Or we should band
together to write a mailing list App in Django that filters out spam!

On Sat, May 3, 2008 at 8:20 AM, Etienne Robillard <
[EMAIL PROTECTED]> wrote:

>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On Fri, 2 May 2008 11:49:19 -0700 (PDT)
> Slayer <[EMAIL PROTECTED]> wrote:
>
> >
> > Please come check out SaveTheWorld.  It's my own group that I'm trying
> > to get started.
> > There's no harm in looking is there?  Come see what I'm trying to do
> > to change the world.
> > Come to look, to laugh, to get enraged in debate, but please come.
>
> Actually, you're right.
> Changing the world needs more than just open source projects.
>
> But please don't spam this list with stupidities.
>
> Thanks,
> Etienne
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v2.0.9 (FreeBSD)
>
> iEYEARECAAYFAkgcgr4ACgkQ0H/Gee/mchQgkgCfRjLTwsI91hqiBWV5GzUDyydE
> VBsAoJlOIGe5ydCuTNr/cFeKcZAfrV6Z
> =agab
> -END PGP SIGNATURE-
>
> >
>


-- 
http://search.goldwatches.com/?Search=Movado+Watches
http://www.jewelerslounge.com
http://www.goldwatches.com

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Django Performance Discoveries Part 1

2008-04-28 Thread James Matthews
Very nice article! Thanks

2008/4/28 Graham Dumpleton <[EMAIL PROTECTED]>:

>
> On Apr 28, 5:44 pm, Jarek Zgoda <[EMAIL PROTECTED]> wrote:
> > Christian Vest Hansen napisał(a):
> >
> > > On 4/28/08, rich <[EMAIL PROTECTED]> wrote:
> > >>  Yes, I too am at a similar level of confusion as to when django is
> not
> > >>  thread safe.
> >
> > > With the python GIL, is it even possible to create a python program
> > > that isn't thread-safe? I thought that was the whole point of having a
> > > GIL in the first place; make concurrency a non-issue.
> >
> > Yes, it is still possible. Create an object with global state, alter it
> > from different threads without locking and there you go, the state of
> > object is not consistent (threads can not rely on the state), you might
> > even get race condition. GIL protects only internal state of VM, not
> > your objects' state.
>
> Correct. For some background on when multithreading issues apply with
> mod_wsgi, see:
>
>  http://code.google.com/p/modwsgi/wiki/ProcessesAndThreading
>
> In particular, for any configuration where wsgi.multithread is True,
> you need to know your code is thread safe.
>
> The document includes a brief summary at the end about building
> portable applications that can deal with both multithread and
> multiprocess web servers.
>
> Graham
> >
>


-- 
http://search.goldwatches.com/?Search=Movado+Watches
http://www.jewelerslounge.com
http://www.goldwatches.com

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Enhancing the Admin Interface

2008-04-28 Thread James Matthews
Dear List

Can someone please point me to a site that lists all the enhancement for the
admin interface. (filter lists,search,orderby etc..)

Thanks
James

-- 
http://search.goldwatches.com/?Search=Movado+Watches
http://www.jewelerslounge.com
http://www.goldwatches.com

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Calling syncdb twice

2008-04-01 Thread James Matthews
Thank you!

On Tue, Apr 1, 2008 at 2:56 AM, blis102 <[EMAIL PROTECTED]> wrote:

>
> James,
>
> Django Evolution is a project that is working to take care of that
> problem (http://code.google.com/p/django-evolution/). I have not used
> it but, if what they say on their site is correct, it does what you
> are looking for:
>
> "When you run ./manage.py syncdb, Django will look for any new models
> that have been defined, and add a database table to represent those
> new models. However, if you make a change to an existing model, ./
> manage.py syncdb will not make any changes to the database.
>
> This is where Django Evolution fits in. Django Evolution is an
> extension to Django that allows you to track changes in your models
> over time, and to update the database to reflect those changes. "
>
> Hope that helps,
> Dana
>
> On Mar 31, 7:51 am, Evert Rol <[EMAIL PROTECTED]> wrote:
> > > I was wondering why you can only call "python manage.py syncdb" to
> > > create your databases but after that if you change your models file
> > > it work create the changes and you have to do them manually using SQL?
> >
> > I think there are several threads in this discussion group that have
> > some mention of the hows and whys (google for them), but basically:
> > it's too complicated, or otherwise very tricky, to alter tables
> > (altering or adding columns) automatically. In particular, it won't
> > even work with sqlite (http://www.sqlite.org/omitted.html).
> >
>


-- 
http://search.goldwatches.com/?Search=Movado+Watches
http://www.jewelerslounge.com
http://www.goldwatches.com

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Calling syncdb twice

2008-03-31 Thread James Matthews
Hi,

I was wondering why you can only call "python manage.py syncdb" to create
your databases but after that if you change your models file it work create
the changes and you have to do them manually using SQL?

Thanks
James

-- 
http://search.goldwatches.com/?Search=Movado+Watches
http://www.jewelerslounge.com
http://www.goldwatches.com

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Reloading projects on FCGI

2008-03-31 Thread James Matthews
Hi

What is a quick way to reload your project (for example you want to make a
quick code change) under fastcgi? From what i understand (which might be
wrong because i just started with django) is that everything is compiled and
cached. SO if i need to make a quick code change how can i reload the whole
project.


Thanks
James

-- 
http://search.goldwatches.com/?Search=Movado+Watches
http://www.jewelerslounge.com
http://www.goldwatches.com

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---