Re: Regarding the sub domains

2012-10-14 Thread creecode
These comments are for the OP, I'm just using Christopher's message to key 
off of...

On Saturday, October 13, 2012 10:59:56 PM UTC-7, Christopher Hartfield 
wrote:

You would have to yes first configure your name servers and allow your 
> website example.com to resolve each of those subdomains.  So hopefully 
> your number of users won't be too high :(  If your allowed you might find 
> it easier to do example.com/moris/, but I would assume you can't do that.


For your name server you'll want to use a 
wildcard<http://en.wikipedia.org/wiki/Wildcard_DNS_record>
.

Django can handle subdomains with certain plugins like: 
> http://django-subdomains.readthedocs.org/en/latest/index.html
>

You don't have to use a Django app to handle subdomains, all the routing 
can be handled with your webserver (like Apache, etc.)  It just depends on 
where you want to do your configuring. 
 

> Setting up multiple databases isn't too hard and you can use RAW SQL to 
> help you with it. 
>
 

> Django supports multiple databases (but I'm not sure you can use Django to 
> create a new db on the fly)
>

You can get Django to create a new database on the fly with the use of a 
custom management command.  Essentially you'll be using RAW SQL in the 
management command to do the database creation bit.  Keep in mind that you 
need to have a Django environment setup to use the custom management 
command.  That involves some overhead which only you'll be able to 
determine if it is appropriate for your situation.

You may want to read this thread on one way to do mass 
hosting<https://groups.google.com/d/msg/modwsgi/wp3ej772jgs/SXMzMZl5dN0J>if 
you're going to use mod_wsgi.

Toodle-loo
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/1_XG0SfjoA0J.
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: URL Hierarchy on a given page

2012-10-02 Thread creecode
Hello JJ Zolper,

What you are describing is commonly called breadcrumbs.  Hopefully that 
tidbit will help yield more search results.

On Tuesday, October 2, 2012 9:03:06 PM UTC-7, JJ Zolper wrote:

So I was reading this page to try to find a solution:
>
> https://docs.djangoproject.com/en/dev/topics/http/urls/
>
> but I would like to hear any ideas.
>
> What I'm trying to do is basically give the relevant URL hierarchy for any 
> page on my website. (That's the best I can put it into words).
>
> So to try and make my question more clear, some examples:
>
> If the visitor was here:
>
> http://www.madtrak.com/ <http://www.madtrak.com/about>
>
> it would say "Home" and that would be a link to the home page.
>
> now going deeper if the visitor was here:
>
> http://www.madtrak.com/about <http://www.madtrak.com/about/contributors>
>
> right above where it says: "Learn more about our 
> contributors<http://www.madtrak.com/about/contributors>
>  be"
>
> it would say "Home >> About"
>
> and both "Home" and "About" would be the relevant links to 
> http://www.madtrak.com/ <http://www.madtrak.com/about> and 
> http://www.madtrak.com/about respectively.
>
> and one last time:
>
> if the user was here:
>
> http://www.madtrak.com/about/contributors<http://www.madtrak.com/about/contributors/jjzolper>
>
> right above "*Contributors*"
>
> it would say "Home >> About >> Contributors"
>
> and as you might have guessed "Home", "About", and "Contributors" would be 
> the relevant links to http://www.madtrak.com/<http://www.madtrak.com/about>
>  , http://www.madtrak.com/about, and 
> http://www.madtrak.com/about/contributors respectively.
>
> I believe after having said this what I'm trying to do is more clear. So 
> yeah, I wouldn't want to go page by page creating this for each page I want 
> a generic sort of way to code and basically plant this in all the pages 
> desired. It would then get the URL hierarchy above it (including the 
> current page) and display that in a very quick and easy way to navigate 
> through the website!
>

 Toodle-loo...
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/7XXGBElP858J.
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.contrib.markup "Deprecated in Django 1.5"??

2012-10-02 Thread creecode
https://groups.google.com/forum/#!searchin/django-users/markup/django-users/iwfuDFFAltI/hOOGii98eQAJ

On Tuesday, October 2, 2012 8:46:05 AM UTC-7, JC Briar wrote:

Can someone please explain to me why the dev version of the docs for 
> django.contrib.markupbegins
>  with the statement "Deprecated 
> in Django 1.5: This module has been deprecated"? Deprecated why? Is 
> something better coming in Django 1.5, or ...?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/Q-41E30XnBQJ.
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: handling incoming xml response

2012-09-28 Thread creecode
Hello Sait,

On Friday, September 28, 2012 6:38:34 AM UTC-7, Sait Maraşlıoğlu wrote:
>
> Can u tell me how u handle incoming xml responses,
>

Generally you start with an XML parsing library. Which one you choose 
depends on what you are trying to do and also what makes sense to you. 
There are many Python based XML parsing tools available and a Google search 
would return many results.

Python has some built-in libraries that you might find of use 
xml.dom.minidom<http://docs.python.org/library/xml.dom.minidom.html#module-xml.dom.minidom>
 or 
xml.etree.ElementTree<http://docs.python.org/library/xml.etree.elementtree.html#module-xml.etree.ElementTree>.
 
 I've used BeautifulSoup a bit with good results.

Toodle-loo
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/nayPQ0zERP4J.
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: ANN: eGenix mxODBC Connect - Python Database Interface 2.0.1

2012-09-26 Thread creecode
I don't mind the occasional well marked commercial product announcement as 
long as it's related to django.  By well marked I mean something in the 
subject line that indicates this is an ad or announcement, which this 
poster did.  Thank you!

Toodle-l...
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/QFsr5-5-NboJ.
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 scrolling script

2012-09-26 Thread creecode
A Google search would yield many results.  I think you'll find that this 
sort of thing is often handled by a library such as jQuery (one of many 
possibilities).  You would use the library as their documentation directs 
and then supply the data needed from your django project.

Toodle-loo
creecode

On Wednesday, September 26, 2012 3:40:12 AM UTC-7, MrF16 wrote:

Hello, I need a script to display content from my database in a scrolling 
> list on my website. Any links?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/ooYKKr7eZHMJ.
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: newbie: patch required? procedure? [closed ticket 16017 / createsuperuser]

2012-09-13 Thread creecode
Which version of django are you using?

On Thursday, September 13, 2012 7:58:11 AM UTC-7, Bob Aalsma wrote:

I'm a newbie following the tutorial. In this, creating a superuser is 
> described, using 
>
> manage.py createsuperuser --username=joe --email=j...@example.com 
> 
>
>
> Using this leads to an error, which I could match to the closed ticket 
> #16017.
>
> But I couldn't find how to proceed from there. It seems some software was 
> changed about 4 weeks ago:
> "Made createsuperuser more robust when getting current OS username."
>
> So where can I find it?
> [I'm assuming there is a procedure for this, but I'm sorry to say I 
> couldn't find that either]
>

Toodle-loo.
creecode 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/DoDjnLlSiZwJ.
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: Installation script?

2012-09-04 Thread creecode
Hello Cartsten,

Have you checked out pip <http://www.pip-installer.org/> which has 
a requirements feature and fabric <http://docs.fabfile.org/>.  Those two 
would probably take you a fair ways or at least give you some ideas how you 
might approach the problem.

On Monday, September 3, 2012 5:39:41 AM UTC-7, Carsten Agger wrote:
 

> We'd like to be able to automate all of this, so that the user can 
> install these two services by running a single installation script.
>

Toodle-looo
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/POj4TfIrtHUJ.
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: people.djangoproject.com broken

2012-08-30 Thread creecode
Hello Timothy,

I just tried going to the login webpage and had no problem.  I'm not 
registered on that website so my experience may be somewhat different.

On Thursday, August 30, 2012 10:39:24 AM UTC-7, Timothy Makobu wrote:

Still having no luck. Here's a screenshot of the error, displayed about 5 
> minutes ago:
>

Are you just going to the webpage or is this error after you have tried to 
login?

Are you using OpenID?  That may have something to do with it.

If you are just using the "regular" login (cookie based), have you tried 
deleting the cookies related to the website from your browser?

Toodle-looo.
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/s14_SIlckdwJ.
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 stickers

2012-08-25 Thread creecode
Hello Frej,

On Saturday, August 25, 2012 7:12:42 AM UTC-7, Frej Connolly wrote:

Where can I buy stickers with the Django logo?


If you can't find some already made you could use Cafe 
Press<http://www.cafepress.com/> to 
create your own from some of the artwork available on the internet.

Toodle-l.....
creecode 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/w195ETkUNZwJ.
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: custom management commands: AttributeError: 'module' object has no attribute 'Command'

2012-08-13 Thread creecode
I have many custom management command names that have underscores in them. 
 I've never had a problem.  I believe that a management command name only 
needs follow python rules for naming files.

On Sunday, August 12, 2012 1:44:06 AM UTC-7, Melvyn Sopacua wrote:

On 11-8-2012 2:14, Matthew Meyer wrote: 
>
> Since I don't see anything wrong with your code or setup, I'm going to 
> take a stab in the dark and say that you need to loose the underscore in 
> the command.
>

Toodle-looo
creedcode 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/IyKV_xgNgOcJ.
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: object.create speed, creating 3 objects takes 1 sec in sqlite

2012-08-06 Thread creecode
Hello Anton,

On Friday, August 3, 2012 9:05:47 AM UTC-7, Anton wrote:
 

> My Problem: I will populate it with 5 items. 
>
> Has Django really such a bad performance for data insertion? 
>
> I can't believe it, so ... can somebody give me a hint? 
> Is there a doc page dedicated to speed/performance issues?? 
>
> Otherwise I have to look for an other system.
>

Before you go looking for another system you may want to do some research 
on inserting lots of rows in Django.  Cal Leeming on this list has had some 
experience dealing with lots of rows and there are several threads on the 
topic.  Check the Google interface for this group and use the search 
feature.  Also try Googling for inserting lots of data with Django, several 
folks have written about their experiences inserting lots of rows.

Toodle-loo...
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/yLxStReK_1gJ.
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: Do I understand the support schedule correctly?

2012-08-06 Thread creecode
Hello Steve,

On Saturday, August 4, 2012 9:24:27 AM UTC-7, Steve Bergman wrote:

that means a forced upgrade on both framework and 
> apps


Why a forced upgrade?  Just use what you installed to get your projects up 
and running until such time as as conditions are comfortable for you to 
upgrade.

The key factor for your situation is going to be how quickly the apps 
you're using with Django follow the updates to Django.  You don't have to 
run the latest of everything to get some work done.

Toodle-lo
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/0Ti06eA64zQJ.
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: RSS Reader

2012-06-14 Thread creecode
Hello armagan,

A quick guess.  Mozilla's RSS reader doesn't understand your  tag and 
so passes over it and doesn't display it?  If the  tag isn't part of 
the RSS specification <http://www.rssboard.org/rss-specification> then a 
"standard" reader isn't going to do anything with your tag.  You would need 
either a custom reader or one with an extension.

On Thursday, June 14, 2012 7:44:59 AM UTC-7, armagan wrote:
>
>
> I wrote a rss custom feed class and I add an item element with 
> 'handler.addQuickElement(u"city", item['city'])' this function. It's ok I 
> can see the city tags in xml but mozilla's rss reader can't read my city 
> tags. What can I do to fix the problem?
>

Toodle-looo.
creecode 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/BglqzxjcNYAJ.
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: Displaying markdown in html

2012-05-04 Thread creecode
Hello Emily,

This is not a direct answer to your question.  It looks like Tom has your 
answer.  You will most likely want to move the {% load markup %} to near to 
top of your template.  Generally loads only needs to be done once at the 
start of the template.

On Friday, May 4, 2012 5:55:28 AM UTC-7, Emily Namugaanyi wrote:


>
>  
>
>   {% for guideline in guidelines %} 
> {% load markup %} 
> Question: {{ guideline.question }}  
> Answer: {{ guideline.answer_markdown }}  > 
> {% endfor %} 
> 


Toodle-lo.
creecode 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/p6ckOCJjQGwJ.
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- accessing items in a python dictionary

2012-04-29 Thread creecode
On Sunday, April 29, 2012 7:36:17 AM UTC-7, hius...@qq.com wrote:

what is value of the etc?
>

I believe that etc. in this case is an abbreviation for etcetera.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/CupTM1pXfVoJ.
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: cannot add User to database

2012-04-20 Thread creecode
Hello Mai,

Could you post the actual error you are getting or describe the problem you 
are having more fully?  Posting a bunch of code doesn't help much unless 
there is more context to work with.

Toodle-l..
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/IFqHYZJgtaAJ.
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: Macs are great for Django development!

2012-04-20 Thread creecode
Hello Houman,

On Friday, April 20, 2012 5:58:34 AM UTC-7, Houmie wrote:
 

> As I am not familiar with Mac, is it true that a let say a Mac Mini is 
> powerful enough to run Python, Eclipse/PyDev and Django like its done 
> in Ubuntu without any problem?


Macs are great for Django development!  You may have to do a bit more work 
to get some libraries installed as sometimes they aren't specifically tuned 
for Macs.  Any modern Mac should be just fine for development.  Heck even 
ancient Macs (PPC based) can be used albeit slower and somewhat harder to 
configure, not the OS but again some of the libraries you might install.

I have a website <http://www.crowdsourcingnutritionfacts.info/> in 
development and the servers are Mac based.  The webserver is a recently 
purchased low-end Mac Mini <http://www.apple.com/macmini/specs.html>.  Its 
stack includes djagno, nginx, gunicorn, psycopg2, etc.  The database server 
is an ancient Power Mac G4 (Mirrored Drive 
Doors)<http://support.apple.com/kb/SP63>, 
Dual 1GHz.  It's running Postgres.  The webserver was formerly a Power Mac 
G4 (Mirrored Drive Doors) <http://support.apple.com/kb/SP63>, Dual 1.25GHz 
which finally gave up the ghost after almost 10 years of faithful service [ 
sniff :-( ].

The system has thus far not been optimized but it runs adequately fast at 
this stage of my development process.  Feel free to look around or even 
enter in some nutrition facts labels! :-)

Toodle-looo...
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/5zg9YgFpjZ8J.
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: High Traffic

2012-04-16 Thread creecode
Hello Yarden,

On Monday, April 16, 2012 12:25:36 PM UTC-7, Yarden Sachs wrote:

Hello, I am using django 1.3 on apache 2.* on windows server 2008. 
> mysql 5.* 
>
> When i try to access a view that does this: def view(request): 
> len(User.objects.all()) return HttpResponse() 
>
> i have about 9K results on that. i am doing len and not .count, 
> because i want to test the server. 
>
> the server becomes reaally slow.
>

Are you running Django and MySQL on the same server box?  If so then you 
are possibly running into speed issues because of contention.  There are 
several Djagno configuration docs on the web that talk about using at least 
one server for your app and another for your database.  Another thing to do 
is move static files onto their own sever.

You might want to try django-debug-toolbar to examine your queries for your 
webpages to see if you can do some optimization.  I highly recommend giving 
it a go!

Of course there are many things one can do to make things faster but you'll 
need to give us some more info about your setup before we can help you more.

Toodle-loo.
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/qnCVc66M958J.
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 admin - How to disable "Delete each record" option for all the models at once

2012-04-10 Thread creecode
Hello Girish,

Would 
ModelAdmin.has_delete_permission<https://docs.djangoproject.com/en/1.4//ref/contrib/admin/#django.contrib.admin.ModelAdmin.has_delete_permission>do
 the trick?

On Monday, April 9, 2012 10:27:40 PM UTC-7, girishms wrote:
>
>
> Is there a way to remove "Delete each record" option for all the models in 
> admin?
>

Toodle-lo..
creecode 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/PDjUInlNzXYJ.
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: adding html5 field attributes to a model form

2012-04-09 Thread creecode
Ah I see.  I haven't looked deeper in the code I'd guess the type is being 
set after you set it deeper in the machinery based on field class?  Perhaps 
a custom field could accomplish your goal?

On Monday, April 9, 2012 7:17:56 PM UTC-7, Lee Hinde wrote:
>
>
> Thanks for the response, Creecode,
>
> I've used that for adding class attributes just fine, but in this case I'm 
> trying to change the field 'type' and that's what doesn't seem to work.
>

Toodle-l.
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/x1LoD_TXVwwJ.
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: adding html5 field attributes to a model form

2012-04-09 Thread creecode
Hello Lee,

On Monday, April 9, 2012 6:14:08 PM UTC-7, Lee Hinde wrote:

I'm trying to edit the field type in a form that is using the html5 
> doctype. I've tried two ways:
>
> Neither works. 
>
> Am I looking in the wrong place?
>

I use both those techniques and they work great for me.  I've use them on 
many forms for a project I'm working on now.  Some examples from my code...

brand_name = forms.CharField ( label = _( 'Brand Name' ), max_length = 
128,
widget = forms.TextInput ( attrs = { 'class' : 'span6', 
'placeholder' :
'enter brand name', } ) )

...and...

def __init__ ( self, *args, **kwargs ):

super ( AmountPerServing1Form, self ).__init__ ( *args, **kwargs )

for key in self.fields:

field = self.fields [ key ]

field.widget.attrs [ 'class' ] = 'span7'

I don't see anything wrong with your syntax.  Have you tried the usual 
things?  Make sure you save the file your're editing, restart the server, 
etc?  And still the form didn't show up with your changes?

Could there be some browser or other caching going on between you and the 
server?

Are you sub-classing those forms for using them directly?

Toodle-lo
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/k6DJ30Z_ZWsJ.
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: Problem with Django tutorial

2012-04-04 Thread creecode
Opps...

On Wednesday, April 4, 2012 10:19:13 AM UTC-7, creecode wrote:
>
>
> It looks like are are on some kind of unix/linux variant so you probably 
> have a touch command.
>

That should have been "It looks like you are on..."  

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/qadyM8eb-mkJ.
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: Problem with Django tutorial

2012-04-04 Thread creecode
Hello maxim,

On Wednesday, April 4, 2012 9:51:39 AM UTC-7, maxim wrote:

I can't get the tutorial working for me. When I try to run the command:
> python manage.py syncdb
>
 

> My settings file has this for databases:
>
 

> 'NAME': '/home/maxim/mysite/mysite.db',  # Or 
> path to database file if using sqlite3.
>

I'm not sure but could it be there is no file at 
/home/maxim/mysite/mysite.db ?  If not you might try to touch that path and 
then try your syncdb.  It looks like are are on some kind of unix/linux 
variant so you probably have a touch command.

Toodle-looo..
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/GNnW9phn3JMJ.
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: Tweepy Not Displaying

2012-03-28 Thread creecode
Hello coded kid,

On Wednesday, March 28, 2012 3:56:12 PM UTC-7, coded kid wrote:
 
>
> Template: 
>
 

>  {% for status in status %}
>

That bit looks like it might cause trouble.  You are assigning status to 
status.  Normally you'd want something like...

{% for status in statuses %}

or

{% for status in status_list %}

or

{% item in status %}

Use whatever variable names you want as long as you're not clobbering 
variables that are needed while looping.

Toodle-loo
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/3Kf6U0WIrMUJ.
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: all(), get(), create(), count(). More info?

2012-03-25 Thread creecode
Hello MF-DOS,

If you're just getting started with Django you might want to use the latest 
release tutorial <https://docs.djangoproject.com/en/1.4/intro/tutorial01/>.  
Of course you'll also want the 
latest<http://www.djangoproject.com/download/1.4/tarball/>Django release.

Whatever version you use make sure that the Django documentation and code 
versions are in sync.

I mention this because folks have been caught out by not using the same 
versions.

On Saturday, March 24, 2012 10:31:30 PM UTC-7, MF-DOS wrote:

Running this tut: 
https://docs.djangoproject.​com/en/1.1/intro/tutorial01/<https://docs.djangoproject.com/en/1.1/intro/tutorial01/>
 
>

Toodle-lo
creecode 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/PBM_5AiRFEAJ.
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: A good Twitter Package

2012-03-16 Thread creecode
Hello coded kid,

On Friday, March 16, 2012 2:30:06 AM UTC-7, coded kid wrote:

Hi guys, does anyone know about a good django package for twitter 
> authorization? I tried using omab/django social auth, but the twitter 
> authorization is not working for me.


Are you interested in oAuth capabilities only (authorization) or Twitter 
functionality as a whole (post, delete, etc. )?

If you want a Twitter client take a look at Python Twitter < 
http://code.google.com/p/python-twitter/ >.  I've used it a bit for posting 
and seems to work OK.

Toodle-looo...
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/BKzWscn6zKkJ.
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 making box

2012-03-13 Thread creecode
Hello Sophia,

On Tuesday, March 13, 2012 1:37:57 PM UTC-7, Sophia wrote:
>
> Thanks all for helping, as I told I read that tutorial, but my supervisor 
> said that I should do that with Django. He didn't mention about learning  
> JavaScript, but is it impossible just with Django?


I don't think it would be impossible to do it all in Django.  If you do it 
solely with Django you would need your box to act like a submit button on a 
form so that you can have the Django server do something in response to a 
form submission.

But without a clearer definition of how you want your app to behave it will 
be hard for us to give you more insight into how you might proceed.

When you say supervisor said is shoul be done in Django is that a 
supervisor as in teacher?  Or supervisor as your superior at work?

Toodle-looooo..
creecode


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/NdkVkN7HbT8J.
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: Anyone experience any thing like this before?

2012-03-03 Thread creecode
Hello Stanwin,

On Friday, March 2, 2012 10:05:32 PM UTC-8, St@n wrote:

Hello,
>
> I was just tidying up on my project when i discovered a small bug.
>
> the last one being a queryset. 
>
> *So the forms.py looks like this:*
>
> keywords = 
> forms.ModelMultipleChoiceField(queryset=Keyword.objects.all())**
>
 
>
*However, the output becomes like the screenshot below:*
>

The keyword items being displayed as "Keyword object" are probably because 
you need to define a __unicode__ method for your Keyword model.

Something like this...

def __unicode__ ( self ):

return '%s' % self.pk

Obviously you would need to tune that method to match your model definition 
and what you want displayed.

Toodle-lo..
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/tpQDzaxafV0J.
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: Automated Processes

2012-03-03 Thread creecode
On Friday, March 2, 2012 8:48:57 PM UTC-8, Russell Keith-Magee wrote:

Seriously -- Django is good at what it does, but just because you've got a 
> really good hammer, it doesn't mean every problem is a nail. The task you 
> describe sounds like almost exactly what cron scripts are designed to 
> handle. Rather than trying to bend Django into a shape that will solve your 
> problem, use the right tool for the job.
>
> You might also be able to attack the problem using a task queue like 
> celery [1]. However, celery is more complex to get set up than a cron 
> script. There are lots of benefits that come with that complexity, but if 
> you just want to get something going, you don't have any experience with 
> task queues, and you're not expecting any serious load problems, cron will 
> be the easier option.
>
> It's also worth pointing out that you can still use parts of Django (e.g., 
> your models, the ORM, the mail sending utilities) in a standalone Python 
> script that is called by cron/celery. Django is a just a set of Python 
> libraries. Yes, it's a set of libraries that is usually used to build web 
> sites, and most examples use Django APIs to service HTTP requests, but 
> there's no reason you can't write a standalone Python script that uses 
> Django's APIs to access and manipulate data.
>
Scott as Russ points out you can still use parts of Django.  I've had good 
success with cron and custom django-admin 
commands<https://docs.djangoproject.com/en/1.3/howto/custom-management-commands/>.
  
There is some overhead to write the commands but the upside is that they 
give you a defined way to approach the problem within the realm of Django.  
Also since they are django-admin commands you can run them as you would any 
other django-admin command manually which can be convenient at times.

Toodle-l..
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/K45OgnyooaUJ.
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 profile

2012-03-02 Thread creecode
Hello Bo,

On Friday, March 2, 2012 12:26:05 PM UTC-8, Bo Lang wrote:
>
> Can someone suggest me an application for adding user profile to django?
> I have found
> https://bitbucket.org/ubernostrum/django-profiles


Give James Bennett's django-profiles a go if you think it will meet your 
needs.  James does excellent work!
 

> but those 2 projects 
> don't receive update recently.


Just because something hasn't been updated recently doesn't mean it's not 
current, useful, or popular.  It can simply mean that the software does 
what it needs to and there has been no reason to update it.

Toodle-loo...
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/o-5oXFPLUJkJ.
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: Need a Django/Python Freelancer (Paid Project)

2012-02-15 Thread creecode
How about a little more detail posted here to the list?  General parameters 
of how the website is to function?  Some specs?  You might generate more 
interest with more information.

Toodle-l...
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/nGl-yqlB_OEJ.
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: Registering a user profile

2012-02-14 Thread creecode
Hello Jonathan,

On Tuesday, February 14, 2012 10:38:39 AM UTC-8, Jonathan Hayward wrote:

Do I need to create a separate application under pim and load " application>.UserProfile"?


>From the docs...

To indicate that this model is the user profile model for a given site, 
fill in the setting 
AUTH_PROFILE_MODULE<https://docs.djangoproject.com/en/1.3/ref/settings/#std:setting-AUTH_PROFILE_MODULE>with
 a string consisting of the following items, separated by a dot:

   1. The name of the application (case sensitive) in which the user 
   profile model is defined (in other words, the name which was passed to 
   manage.py 
startapp<https://docs.djangoproject.com/en/1.3/ref/django-admin/#django-admin-startapp>to
 create the application).
   2. The name of the model (not case sensitive) class.

For example, if the profile model was a class named UserProfile and was 
defined inside an application named accounts, the appropriate setting would 
be:

AUTH_PROFILE_MODULE = 'accounts.UserProfile'

 
So yes your UserProfile model should be inside of a separate app.  I 
usually call this app accounts just like the docs.  I generally put all my 
models inside an app not at the top level of a project.

Toodle-lo..
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/v-G9LkGXdEoJ.
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: Registering a user profile

2012-02-14 Thread creecode
Hello Jonathan,

See the "Storing additional information about 
users<https://docs.djangoproject.com/en/1.3/topics/auth/#storing-additional-information-about-users>"
 
section in the docs.  There it mentions the expected format of 
AUTH_PROFILE_MODULE.

I suspect what you need to do is wrap your UserProfile model up in it's own 
app if it isn't in one already.  Alternately you need to change the 
"models" in AUTH_PROFILE_MODULE to the name of your app.

Let us know if that works for you.

Toodle-lo..
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/HSX4NGpn66kJ.
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-mptt compared w/ django-treebeard

2012-02-02 Thread creecode
Hello Aljosa,

I wouldn't assume that just because something hasn't been updated for 
awhile that it isn't good.  It simply could be that the app does what it 
needs to and there hasn't been a reason to change it.  You might want to 
contact the app authors and ask if their projects are actively maintained.

Toodle-looo.
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/3wQ_QTSjmwEJ.
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: Logging into CSRF protected Django site using Curl?

2012-01-08 Thread creecode
Hello Stodge,

It seems a bit convoluted on the command line but in reallity not much more 
convoluted if you consider all that a browser does for us in this regard. 
:-)

I've used a similar technique to the one you describe on my Crowdsourcing 
Nutrition Facts website.  Here is an extract from the 
documentation<%20http://www.crowdsourcingnutritionfacts.info/about/#rest-api-authentication>
...

Get the login webpage and parse the csrf token into the data shell 
variable. 

$ data=$(curl -s -c cookies.txt 
http://www.crowdsourcingnutritionfacts.info/accounts/login/ | grep -o 
"name=['\"]csrfmiddlewaretoken['\"] value=['\"][^'\"]*" | sed -e "s/name='//" 
-e "s/' value='/=/")\&username=*user name*\&password=*password*

 Log in to the website. 

$ curl -b cookies.txt -c cookies.txt -d $data -X POST -H 'Content-Type: 
application/x-www-form-urlencoded' 
http://www.crowdsourcingnutritionfacts.info/accounts/login/

 Get brands containing the search term "ea". 

$ curl -b cookies.txt 
http://www.crowdsourcingnutritionfacts.info/api/auto-complete/brand/?term=ea


This is not a best practices or anything just a sample to show programmers 
the mechanics of interacting with the website with whatever tools they 
choose to use.  I attempted to use tools that I thought would be 
available/familiar to a wide variety of systems/programmers.

Toodle-l...
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/2zB_PjkkOwkJ.
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: Cheap Django hosting?

2012-01-04 Thread creecode
Hello Praveen Krishna R,

On Wednesday, January 4, 2012 1:53:00 AM UTC-8, Praveen Krishna R wrote:

*Did you say $2 per month for an EC2 instance ?!!*
>

That is for the Micro instance <http://aws.amazon.com/ec2/instance-types/>which 
is suitable for some tasks but not all.  Check out the 
pricing <http://aws.amazon.com/ec2/pricing/> structure for all their 
instance types.

Toodle-looooo....
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/cJdPJs47KN4J.
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: User-set domain-prefixes, i.e. myname.googlegroups.com

2012-01-01 Thread creecode
Hello Alec Taylor,

I've done something like this at one of my websites.

The basic steps I use are gather the info in a form.

On form submit the info goes into a website registration database and the 
user is sent a website creation confirmation email.

The user receives the email and clicks on the supplied confirmation link.

The user is informed that they will receive an email when their website has 
been created.

(The above should be familiar to those of you that have used James 
Bennett's django-registration.  It's basically the same mechanics but 
applied to website registration/creation.)

A cron job triggers once a minute and scans the website registration 
database, creating any confirmed pending website registration requests.

The cron job sets up a django environment and calls a series of custom 
django-admin commands that creates databases, django projects, apache 
configs, etc.

The DNS config for the domain is given a wildcard (*.googlegroups.com) 
address record and Apache is used to redirect to a default domain for any 
domain that isn't picked up by Apache's config files.

Toodle-looo
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/0VvJsoARllkJ.
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 dev/deploy environment for distributed agile teams

2012-01-01 Thread creecode
Hello Ashkan,

Gunicorn can handle async from what I read < 
http://gunicorn.org/design.html >.  From the docs...


 Sync Workers <http://gunicorn.org/design.html#contents> 

The most basic and the default worker type is a synchronous worker class 
that handles a single request at a time. This model is the simplest to 
reason about as any errors will affect at most a single request. Though as 
we describe below only processing a single request at a time requires some 
assumptions about how applications are programmed.
 Async Workers <http://gunicorn.org/design.html#contents> 

The asynchronous workers available are based on 
Greenlets<http://bitbucket.org/ambroff/greenlet>(via 
Eventlet <http://eventlet.net/> and Gevent <http://gevent.org/>). Greenlets 
are an implementation of cooperative multi-threading for Python. In 
general, an application should be able to make use of these worker classes 
with no changes.
 Tornado Workers <http://gunicorn.org/design.html#contents> 

There's also a Tornado worker class. It can be used to write applications 
using the Tornado framework. Although the Tornado workers are capable of 
serving a WSGI application, this is not a recommended configuration.

Of course there may be other technical reason to not use Gunicorn but if 
you're looking for something that eases deployment, give it a go!

Toodle-l..
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/otf8gw9roOMJ.
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: ¿why put an input with the hash?

2011-12-19 Thread creecode
Hello,

It might help us to better answer your question if you explained why you 
need to see the raw password?

Toodle-lo...
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/05_hWvrb8eYJ.
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: Organizing/Loading components on a home page using python

2011-12-18 Thread creecode
Hello Waqar,

It sounds like you are looking for something like Drupal. Although I've not 
used it myself I think Drupal has an architecture like you describe.

Django is a web framework it is not a website builder with auto-configuring 
modules.

Don't get me wrong.  Django is a fantastic web framework and you could can 
build almost anything you desire.  It's just a bit lower level tool than 
what you describe you are looking for.

Toodle-looo...
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/3aGC-PKPdDoJ.
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: Website Documentation Search broken?

2011-12-14 Thread creecode
Hello Jacob,

On Wednesday, December 14, 2011 10:14:10 AM UTC-8, Jacob Kaplan-Moss wrote:
>
>
> Ugh, I'm sorry. If you take some notes on what those searches are --
> which ones aren't returning results you'd expect -- and let me know I
> can tweak it.
>
No problem man, it's just good to know that something has changed and now I 
can be more attentive next time I notice a problem! :-)

Thanks,

creecode 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/lnjGI_0OzpkJ.
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: Website Documentation Search broken?

2011-12-14 Thread creecode
Hello all,

I can't say for sure but for some time it seems to me that searching has 
become more difficult.  I can't put my finger on any specifics.  I have 
found that some phrases that are in my browser form field cache I've used 
in that past no longer return results.  And I'm almost certain some of them 
were previously successful.

I thought that perhaps it was just me remembering wrong but now, maybe, 
there really is a problem.

Folks, chime in if you've had a feeling the search hasn't been working as 
well as before.

Toodle-looo...
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/2hvk9cLBiy8J.
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: DoS susceptability via email logging

2011-12-08 Thread creecode
Hello Sam,

You might want to do something like detect the situation and then at the 
firewall for your router or server, cut off the offending addresses.  No 
specific details to offer.  The advantage to getting a rule onto your 
firewall would be reduced load on the software side of request processing.

Another approach would be to use server monitoring software such as Nagios 
to regularlly check that the server/websites are up and running and give 
you a heads up when there is a problem.  The advantage here is that you can 
then find out what the problem is and take care of it manually.  If there 
is some kind of pattern to the problem then you might be able to automate a 
solution.  Going the monitoring route generally requires one or more other 
computers to be effective.

Toodle-looo
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/KNm8dSfpUbEJ.
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: double trailing slash in url

2011-12-01 Thread creecode
Hello Brain,

Could it be you are seeing the results of the APPEND_SLASH setting < 
https://docs.djangoproject.com/en/1.3/ref/settings/#append-slash >.

Toodle-loo...
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/vjH3Q5JCwXgJ.
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: converting a large site to Django

2011-11-30 Thread creecode
Hello Mark,

On Wednesday, November 30, 2011 8:46:28 AM UTC-8, marjenni wrote:

All seems good, but what I need to know is what is the easiest/
> quickest way of moving across the rest of the website onto this new
> server? Will I need an entry for each page in the urls file?
>
It will be hard for us to answer that question unless we know more about 
how/where the old webpages are stored and how you would like to store them 
in your Django based website.

You have several options:

Use an app like Flatpages < 
https://docs.djangoproject.com/en/1.3//ref/contrib/flatpages/ >, which 
comes with Django.  Webpages are stored in the database.  It might be 
pretty easy to populate your Django website with some python code you would 
write that would grab your old webpages, massage them, and store them into 
your new website database.

If the old webpages are static, you could put them into the static area 
of your website.

Give us more detail and we can probably be of more help.

Toodle-lo..
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/MskCEcMHZvsJ.
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: Accessing Model Property from Admin Index Page

2011-11-22 Thread creecode
Hello Lee,

I think what we are trying to get to is when you say index page are you 
talking about the admin page that lists the apps and their databases or are 
you talking about the change list for a particular database.  If it's the 
latter then you might be able to do something with the list_display < 
https://docs.djangoproject.com/en/1.3//ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_display
 
>.

Toodle-looo..
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/BlHEAjuUjD8J.
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: Select fields change their value without user interaction

2011-11-18 Thread creecode
Hello Noxxan,

On Friday, November 18, 2011 8:57:53 AM UTC-8, Noxxan wrote:

Django admin in my case is used very often, many people are using it, 
> and I'm wondering what can I do to catch


I don't know about catching an unwanted change.  How would Django be able 
to know that a changed value from the browser is incorrect?
 

> reproduce this kind of 
> problems, to react on them,


You might want to try to isolate if the issue is related to just the FK 
field with 2k entries in it for your browser.  Perhaps create a bare 
minimum html file by hand with a select field with 2 k entries and see if 
that produces the issue.  At least if the issue does manifest it would help 
you with where the bug is happening.

By the way would the ModelAdmin.raw_id_fields < 
http://docs.djangoproject.com/en/1.3//ref/contrib/admin/#django.contrib.admin.ModelAdmin.raw_id_fields
 
> be an option for your use case?

Toodle-looo...
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/r9wBXzLDhT8J.
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: Select fields change their value without user interaction

2011-11-18 Thread creecode
Hello Noxxan,

One possible cause.  Browser bugs.  I was looking at a form the other day 
and I saw a field with a FK popup that didn't look right.  Reloaded the 
webpage, same thing.  Looked at the record via another route and the field 
was OK,  Reloaded form in browser again.  Still wrong.  Relaunched the 
browser, form looked OK!

Let us know if a restart of the browser fixes the issue.  You may want to 
restart the computer at well.  I've found over the years that restarts can 
take care of all kinds of issues.  I often recommend that folks get in the 
habit of doing regular restarts.  At the start of the day is good! :-)

Toodle-lo..
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/IfMxk5H5p4YJ.
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: Which Linux distro to use on EC2?

2011-11-14 Thread creecode
Hello all,

+1 for Amazon's own linux.  So far it seems to work pretty well and Amazon 
to date has been good with regular updates.  They also have a pretty good 
collection of packages available for install via yum.

Toodle-looo..
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/AOuapkEhBaMJ.
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: (fundamental) problem with password reset in 1.x: URL's become too long

2011-11-14 Thread creecode
Hello Bram,

It's been awhile since I've had this problem.  I don't think it is possible 
to totally solve the issue but it can be reduced.  The problem is not 
Django but rather how email is handled from point to point.  What I do is 
always put urls on a line by themselves and I put two empty lines above and 
below.  That way is very much easier to see a url wrapping problem.  I also 
put a note in the email about the url wrapping problem and if the link 
doesn't' work ask the user to make sure the whole url is in the address 
field.  In addition I add that they may need to manually copy and paste.  I 
also have a template email ready to go when a support question of this 
nature comes in that I can shoot off reiterating what the problem might be 
and a possible solution.

If you go this route let us know how it works for you.

Toodle-lo...
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/JF1FmBDYIFoJ.
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: No module named django after upgrade to os x Lion

2011-10-28 Thread creecode
Hello Angelika,

On Friday, October 28, 2011 2:13:20 AM UTC-7, angelika wrote:

creecode, I tried the commands you suggested first. No matter which 
> version I switched to, it still said No module named django, which 
> seems weird but there it is.


If your curious about where the old Django install may have gotten to you 
could try on the command line...

sudo find -x / -name django -print

So I ran sudo easy_install django, just 
> to see if it could be that easy. When the install was done, it seemed 
> to work at first. I could run import django, no problem. I started the 
> tutorial on djangoproject.com and got as far as setting up a db and 
> running python manage.py runserver, before the dreaded 
> "django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb 
> module: No module named MySQLdb" started showing up. God damn it.
>

If you are just doing local development for learning I think you can bypass 
the database install, at least that is what the Django Quick Install docs 
indicate.

At this point I thinking maybe I should just switch to using 
> PostgreSQL instead, if that would solve the problem. What do you guys 
> think?


You could give it a go but if you're just wanting to get through the 
tutorial is does seem like overkill.  I've just tried installing Postgres 
on Mac OS X for the first time and it wasn't smooth sailing by any means.  
Part of the issues were related to installing the Postgres server on an 
older OS version and hardware.  I did install psycopg2 on recent hardware 
with current Lion and a fair amount of hair pulling.  psycopg2 is a 
connector so that Django, through Python, will be able to talk to a 
Postgres server.  It does the same job that MySQLdb does for MySQL.

Toodle-loo.
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/efYSJuk-DIwJ.
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: No module named django after upgrade to os x Lion

2011-10-27 Thread creecode
Angelika may not want to get into virtualenv and virtualenvwrapper at this 
point.  If you're just getting into Python/Django it may be more overhead 
than you want to deal with conceptually at this time.  If your project is 
simple or you're just learning then you may want to wait until you feel the 
need for these tools.

Don't get me wrong these tools are fantastic and I use them myself!

Toodle-loo..
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/uzKtIhXl5qMJ.
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: No module named django after upgrade to os x Lion

2011-10-27 Thread creecode
Hello Angelika,

As a test you may want to try the defaults command ( for more info "$ man 
defaults" and/or google "mac os x defaults" ) to see if your Django install 
is still in the site-packages of an older version of python.  Try something 
like this on the command line...

$ defaults write com.apple.versioner.python Version 2.6

( or 2.5, 2.4, etc depending on which version of Python you were using 
before ).

Log out and back into your shell.

$ python

>>> import django

Let us know what you find.

In the end though you may just want to reinstall Django into the current 
version of the Apple supplied "current" version of Python for Lion ( 2.7.x 
),  If you did the above test, just run the defaults command with 2.7 and 
log out/in, etc.  Then do your Django install.  Keep in mind that the older 
Django might still be hanging around in the old location so if your're 
concerned about disk space, you may want to attempt removal.  Otherwise it 
shouldn't cause a problem.

Toodle-looo
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/3bOHiiwStyMJ.
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 ORM - Am I trying to do the impossible?

2011-10-21 Thread creecode
I recently ran across a similar sounding technique < 
http://www.databasejournal.com/features/mssql/article.php/3712571/SqlCredit-150-Part-11-Change-Tracking-Using-History-Records.htm
 
> which I'm attempting to use in a current project.  It's not Django 
specific but it the techniques discussed may be of use.

Toodle-loo...
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/5P8V-waYI-AJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Admin Home Apps and Models ordering

2011-10-21 Thread creecode
Hello Pedro,

I seem to recall coming across your question being covered in the Django 
docs somewhere.  Unfortunatly I don't know where I saw it.  Perhaps the 
Admin site < https://docs.djangoproject.com/en/1.3//ref/contrib/admin/ > 
section of the docs?  Under customization?

Of course if someone else has better recollection, please pipe up.

Toodle-lo.....
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/xEeEFpWVhDUJ.
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: name conflicts in static files

2011-10-17 Thread creecode
Just a general tip for folks.  Always namespace your template and static 
files to avoid problems.

Toodle-loo..
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/7m8YO6FPpEkJ.
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 is the right way to use S3 as a storage backend?

2011-10-05 Thread creecode
Hello Kurtis,

On Wednesday, October 5, 2011 7:07:16 AM UTC-7, Kurtis wrote:
 

> Unfortunately, and this is probably an issue with Amazon -- I get a an 
> access denied error when I try to access my files. For example: 
>
> http://dw2u7t9lse636.cloudfront.net/css/base.css 


That response is most likely a setup issue with your permissions.  You need 
to make sure that everything along the path (bucket, folders, file) to your 
file has public access set for everyone to access via a browser.

Toodle-loooo....
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/tPtqYK_rEwMJ.
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 order "links" in the Admin?

2011-08-10 Thread creecode
Hello Andre,

Try a Google search for "django admin drag drop reorder admin".  Several 
results there that might point you in the right direction.

I have used a variation on this Django Snippet < 
http://djangosnippets.org/snippets/1053/ > to do reordering in some of my 
projects.

Toodle-l...
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/SSBCKCjJ3y8J.
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: Interesting Python obfuscation techniques from DEFCON18 (June 2010)

2011-07-08 Thread creecode
Hello Cal,

Interesting read.  Thanks for posting.

Toodle-looo..
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/TY4ToUB67AQJ.
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: ANN: django-iadmin

2011-07-04 Thread creecode
Sounds interesting!  Thanks!

On Monday, July 4, 2011 11:06:44 AM UTC-7, sax wrote:
>
> Django iAdmin 
>
> iAdmin is a replacement of standard django admin application.
> Features 
>
>- multiple columns portlets-like home page
>- tabbed view of inlines
>- mass updates functionality
>- export to csv with options and formatting
>- advanced import from csv with foreign key handling 
>- link to foreignkey edit page from changelist (list_display_rel_links)
>- filter by cell values (cell_filters)
>- ajax autocomplete widgets for ForeignKey
>- auto register missed modules.
>- auto add fields not present in fieldset (add_undefined_fields) 
>- utilities ( tabular_factory)
>- info page for packages and application version
>- integrated file manager with upload/zip functionality
>- WYSIWYG editor wymeditor
>- shortcuts to configure django.contrib.* applications
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/PCtWyR-jwVMJ.
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: Questions on markdown

2011-07-04 Thread creecode
Hello Liu,

On Monday, July 4, 2011 10:06:29 AM UTC-7, Liu Lin wrote:

If I understand your post correctly you are entering in something like...

> Action: check WSMB
> Reason: customer check this then got error
> Result: finish, result is good, in spec
>
...in a field of your form.  Upon save you process this field with markdown 
and you want to store something like...

Action: check WSMB
Reason: customer check this then got error
Result: finish, result is good, in spec
 
I'm no markdown expert but I would say this is a problem of your 
understanding of how markdown turns it's markup and into html not a problem 
with Django or the markdown package.

To achieve the results you want I think you would need to enter something 
like...

Action: check WSMB

Reason: customer check this then got error

Result: finish, result is good, in spec

You need a blank line between each line.

Alternately you could preprocess the input and add the extra lines yourself 
before processing with markdown..

Toodle-looo...
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/Tjkni_VHXCUJ.
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: ANN: django-iadmin

2011-07-04 Thread creecode
Hello sax,

How about a short description here of what this app does?

Toodle-loo..
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/64Q1hmkrmW0J.
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: Setting up EC2 for Django

2011-07-04 Thread creecode
Hello all,

On Sunday, July 3, 2011 11:15:15 AM UTC-7, Stuart wrote:

But here is how I would approach it.. 
>
> 1) Figure out how to get Ubuntu Server running out on EC2 (http:// 
> alestic.com/ is a good start) 
> 2) Figure out how to install django on ubuntu (also google for 
> virtualenv and pip) 
> 3) Figure out how to install / configure postgres on ubuntu 
> 4) Figure out how to run django with a production-quality web server 
> (you mention apache, but I would consider nginx or similar). 
> 5) Figure out how to install and configure solr 
>
> Of course each of those steps could be broken down quite a bit.


Stuart has some good general advice there.

An alternative I'll mention which I've been using on EC2 is Amazon's own 
Linux AMI.  Seems to work pretty well for a server and has a good set of 
packages available.  They are doing pretty regular updates to their packages 
as well.

I'm running...

Linux
Upstart (for Gunicorn job management, comes with Amazon Linux AMI)
Nginx
Gunicorn
Apache (for "mass" virtual hosting, Gunicorn's memory footprint seems 
not to compare favorably to Apache for this task, you can drop this if 
you're just hosting a few websites and stick with Gunicorn)
mod_wsgi (goes along with Apache, not needed for Gunicorn)
MySQL (use whatever database suits your needs)
Python (of course! ;-) )
virtualenv
virtualenvwrapper
pip
Django (again, of course! :-) )
Several dozen Python and Django related packages needed to run my 
websites.

Toodle-l
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/JywnPjCJAHoJ.
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: Possible interest in a webcast/presentation about Django site with 40mil+ rows of data??

2011-06-22 Thread creecode
Hello SleepyCal,

On Wednesday, June 22, 2011 9:00:15 AM UTC-7, SleepyCal wrote:

Yup, I'm planning on recording in 1080p and posting on Youtube shortly 
> afterwards.
>

Fantastic!

Thank you,

Toodle-l...
creecode 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/s0_Q9rW2xV0J.
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: Possible interest in a webcast/presentation about Django site with 40mil+ rows of data??

2011-06-22 Thread creecode
Hello SleepyCal,

On Wednesday, June 22, 2011 6:15:48 AM UTC-7, SleepyCal wrote:

If you're interested, please reply on-list so others can see.


+1

Also if the webcast could be stored for later viewing that would be grand.

Toodle-loo..
creecode 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/SZabiWnq_S0J.
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: Alternate user fields

2011-06-18 Thread creecode
Hello Raj,

On Saturday, June 18, 2011 8:52:44 AM UTC-7, raj wrote:

And when I use the 
> AUTH_PROFILE_MODULE way, I am not getting the extra fields to show up 
> on my admin site. Can someone show me how to use it this way? I create 
> a model in an app, create additional fields in a UserProfile class, 
> and i syncdb, but nothing shows up in the auth_user section in the 
> admin page.


You probably need to register your UserProfile with the admin < 
https://docs.djangoproject.com/en/1.3/ref/contrib/admin/#django.contrib.admin.ModelAdmin
 
>.

Toodle-loooo.
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/UKtW-QUIs48J.
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: Alternate user fields

2011-06-18 Thread creecode
Hello Raj,

On Friday, June 17, 2011 10:17:07 PM UTC-7, raj wrote:

I've been trying to figure out how to add more fields in the auth user 
> part of django. I looked through dozens of tutorials, and tried a lot 
> of things to no avail.


Did you look at < 
https://docs.djangoproject.com/en/1.3/topics/auth/#storing-additional-information-about-users
 
>?

Toodle-loooo...
creecode 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/XJI1hXkImPsJ.
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: Making command-line clients to Django data

2011-06-13 Thread creecode
Hello Jeff,

On Monday, June 13, 2011 1:04:16 PM UTC-7, Jeff Blaine wrote:

It's not how we want the end-users to interface with it.


Perhaps if you describe how you do want your users to interface with the 
website via command line then we could give you better advice.
 

> Why is it a dumb idea?
>

It's not a dumb idea but the management command is a pretty good way to do 
things via the command line.  Much less struggle if you do it that way.  
There are several examples of how to write a straight shell script that can 
be found via Google.  I started out with straight shell scripts and have 
switched over to management commands.  Obviously what works for me may not 
suit your needs.

Toodle-loo......
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/Ai39Tndr4Q0J.
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: Excel dumps to Office 10

2011-06-06 Thread creecode
Hello Bobby,

No answer just some thoughts.  Did the MIME type change for Excel between 
2003 and 2010?

If your file dump is in a text format and is delimited with tabs or commas, 
can you change your MIME type to a plain text one?  Although the apps may 
ask to convert when opening files that are in a text format, you'd need to 
test.

Toodle-loo...
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/Y0ZUcERGMUpGbUVK.
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 implement multi-tenant, single DB, single site?

2011-06-06 Thread creecode
Hello Ben,

Take a look at < 
https://docs.djangoproject.com/en/1.3/topics/auth/#storing-additional-information-about-users
 
>.

Toodle-l...
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/bDMtM2ZwUzNOcUVK.
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: bounces

2011-06-06 Thread creecode
Hello Paul,

On Monday, June 6, 2011 5:12:28 AM UTC-7, Paul Schewietzek wrote:
 

> But I'm getting too far off topic with this I guess.
>

Personally I don't mind a little drift off topic on this one.  KG (original  
poster) was having a problem with using a communication channel about 
Django.  If this thread helps someone in the future and saves them posting 
an email about the problem then a few extra posts now seem OK.

Toodle-looooo....
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/Z05TQml6ZFBLendK.
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: bounces

2011-06-05 Thread creecode
Hello KG,

On Sunday, June 5, 2011 12:03:51 AM UTC-7, lawgon wrote:

is anyone else getting bounces starting like this?


I'm assuming you mean the bounces are coming from emails you send in 
response to emails from this Google group?  I can't answer that one as I use 
the web interface exclusively.

If the above isn't correct could you give us more detail?

Toodle-looooo....
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/MFJodmtIUmF3TVVK.
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: Why is django-registration 0.8 not on PyPI?

2011-05-18 Thread creecode
Hello Ram,

James Bennett would be the final authority on that question.  Perhaps 
because it's not actually been released as 0.8?  It appears to be in alpha 
stage.

Toodle-l...
creecode

-- 
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: Pre fork or worker MPM

2011-05-17 Thread creecode
Hello ydjango,

On Tuesday, May 17, 2011 2:15:37 PM UTC-7, ydjango wrote:

I am using Python 2.5, django 1.1 with mod_wsgi 2.5 
>
> Does it matter if I use prefork or worker MPM for apache? 
>
> Which one is recommended for production use?


Which one you choose depends on what you are trying to accomplish.  If you 
could tell us a bit more about your project we might be able to give you 
better advice.  Googleing should produce some results that may be of help.

Toodle-loo......
creecode

-- 
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: default group for new users

2011-05-17 Thread creecode
Hello Brian,

I have a similar signal setup for an app of mine.  I put it at the end of 
the models.py file.  I seem to recall reading a tip somewhere that this was 
a good place for something like this.  Perhaps it was the Django or 
django-registration docs?

Toodle-lo...
creecode

-- 
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: Re : get_absolute_url method breaks under 1.3 but works with 1.2.5

2011-05-13 Thread creecode
Hello wxHacker,

Ummm... I've already defined the method and it worked under 1.2.5 and broke 
in 1.3.  Am I misunderstanding your point?

Perhaps my attachment < 
https://groups.google.com/group/django-users/attach/73bbe17d0b6bae40/absolute_url_test.zip?part=4&authuser=0
 
> didn't show at all end points?  I could also try to post the actual 
relevant file contents to a message.  Although that doesn't seem optimal.  I 
provided the test case project/app as an attachment to make it easier for 
folks who are inclined to do some testing.

Toodle-loooooo.
creecode

-- 
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: Re : get_absolute_url method breaks under 1.3 but works with 1.2.5

2011-05-13 Thread creecode
Hello Dominique,

On Friday, May 13, 2011 10:09:19 AM UTC-7, Dominique Guardiola Falco wrote:

None of my business, but you could also look why your code is calling this 
> method when it shouldn't be called
> Or add a blank get_absolute_url methods to the models which doesn't have 
> one
>

The code is there to be called for this one model.  It works with 1.2.5 but 
breaks with 1.3.  I had already considered improving my code to be more 
robust for use with 1.3.

My main point here though is that something that worked under 1.2.5 is now 
broken in 1.3.  A call to a method when rendering a template that previously 
failed silently, now fails noisily.  I'm attempting to ascertain whether 
failing silently is the desired behavior but is now broken under 1.3.  If 
this is the case then I'd want to report this as a bug.  I'm totally able to 
accept that my coding is the problem and was able to do something in 1.2.5 
and now 1.3 has improved error detection or some such.  I also don't want to 
just change my code without investigation as to why things changed.

My understanding is that in some circumstances failing silently when rending 
template stuff is the prefered behavior.  Is this one of them?  I don't 
know, hence my question to the community.

Toodle-loo..
creecode

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

2011-05-08 Thread creecode
Hello Daniel,

Sorry no.  But I can confirm that the domain (website at least) appears to 
be down.

Toodle-l..
creecode

-- 
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: Input element radio button group across rows of change list view in Admin?

2011-05-02 Thread creecode
Hello all,

If you happen to know of an existing app w/online source that has an admin 
interface similar to what I want, pointers appreciated!

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



Input element radio button group across rows of change list view in Admin?

2011-04-30 Thread creecode
Hello all,

I'm attempting to create a change list view in the Admin where the first 
column is a single radio button.  I want the radio buttons to be a group 
that is shared across the rows.  I want the change list view to show the 
Save button so that the form can be posted.  When the form is posted I want 
to store info about the single row selected but not on the model instance.

I've attached a mock-up image that may aid you in understanding what I'm 
trying to achieve.

This seems to be outside the normal use case for the admin so I realize it 
might be a bit of work.  If it's doable without an excessive effort I'd like 
to give it a go.  Of course this could be a case where I can get 90% of the 
way there but the last 10% is really hard! :-)

I have been tinkering but so far no joy.

If you have successfully implemented such a technique I'd like to see some 
code if it's available online somewhere or perhaps you could describe your 
method.

TIA

Toodle-loo..
creecode

-- 
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: I want Develop django poll app tuturial

2011-04-01 Thread creecode
April Fools joke right? :-) HA HA LOL!

On Apr 1, 1:00 am, cha  wrote:

> Im waiting

Toodle-l..
creecode

-- 
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: develop to product

2011-03-29 Thread creecode
Hello Yongzhen,

The first thing you might want to find out is why, apparently, nginx
is giving you an error when you say that you are using apache/wsgi.

If I had to guess I'd say you might have an nginx server acting as a
proxy in your stack somewhere.  I'm not an expert though as I've just
been getting to grips with basic proxying myself.

Check for an nginx error log somewhere... see what that says, if
there...

On Mar 29, 2:07 pm, yongzhen zhang <4...@live.cn> wrote:

> nginx/0.7.65

Toodle-loooo..
creecode

-- 
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: custom django-admin commands naming convention

2011-03-08 Thread creecode
Hello Marwan,

I don't know if it's common but for my needs it's a must!  :-)  I have
several apps with custom management commands and I've taken to naming
the commands like...

my_app_name_my_custom_management_command_name.py

If find it easier to read the command name if I separate each word
with an underscore.  The names are fairly long but I'm not typing them
into the terminal all that much.  Mostly called from cron or pulled up
through my bash history.

Toodle-looo..
creecode

On Mar 8, 12:02 am, Marwan Al-Sabbagh 
wrote:

> Our company has a number of teams
> developing different apps and I didn't want the naming of the commands to be
> a mess. Are there any recommendations for naming conventions of the
> commands. Is it common for example to call the command appname_command to
> make it clear which app is implementing which command. Any advice/experience
> is welcome.

-- 
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: current recommendations for using email as username

2011-03-04 Thread creecode
It would be grand if the max_length was upped.

On Mar 4, 7:51 pm, Shawn Milochik  wrote:

> > Email addresses have been allowed since version 1.2 <
> >http://docs.djangoproject.com/en/1.2/topics/auth/#api-reference>.
> > Have you found place in 1.2.x where an email address doesn't work?
>
> The problem here is that the username is still limited to 30
> characters. So plenty of e-mail addresses won't work.

-- 
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: current recommendations for using email as username

2011-03-04 Thread creecode
Hello Brian,

On Mar 4, 1:29 pm, Brian Craft  wrote:
> I've found any number of threads on using email as username in django,
> but none that are both current and conclusive. "Just do ", followed
> by "But that breaks [the forms, the templates, the auth site, the
> registration, the db schema]" etc., where  is something like "use
> email in the User username column", "use a randomly generated
> username", "use a hash for username", "write your own auth backend",
> "use django-emailauth", etc.
>
> What is the current state of this?

Email addresses have been allowed since version 1.2 <
http://docs.djangoproject.com/en/1.2/topics/auth/#api-reference >.
Have you found place in 1.2.x where an email address doesn't work?

Toodle-lo..
creecode

-- 
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: now template tag and predefined format DATE_FORMAT problem

2011-02-10 Thread creecode
Hey Daniel,

On Feb 10, 8:36 am, Daniel Roseman  wrote:

> Er... blush... I had a go at this myself last night, and have already raised
> a ticket. I'll mark yours as a duplicate (our fixes were pretty much the
> same). Sorry about that.

No problem.  As long as it is fixed! :-)

Toodle-loooooo..
creecode

-- 
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: now template tag and predefined format DATE_FORMAT problem

2011-02-10 Thread creecode
On Feb 9, 9:17 am, Daniel Roseman  wrote:

It would be worth raising a ticket for this.

Done! < http://code.djangoproject.com/ticket/15267 >.

Toodle-l..
creecode

-- 
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: Any advice on why my template inheritance does not seem to be working??

2011-02-09 Thread creecode
Glad to be of assistance!

On Feb 9, 10:10 am, Dustin  wrote:

> Wow, thank you. Yes that was exactly my problem.

-- 
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: now template tag and predefined format DATE_FORMAT problem

2011-02-09 Thread creecode
Hello Fred,

On Feb 9, 10:02 am, Fred Chevitarese  wrote:

> I guess :P

> > I guess you are making an mistake.
> > It have to be something like this: {% now "jS F Y H:i" %}
>
> > You can take a look at the table with the custom datefilters:
>
> >http://docs.djangoproject.com/en/1.2/ref/templates/builtins/#date

Thank you.  I am aware of how to use the custom format.  What I am
trying to do is use the predefined formats DATE_FORMAT,
DATETIME_FORMAT, SHORT_DATE_FORMAT or SHORT_DATETIME_FORMAT as
specifically mentioned in the docs for the now template tag <
http://docs.djangoproject.com/en/dev/ref/templates/builtins/#now >.

Toodle-l..
creecode

-- 
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: now template tag and predefined format DATE_FORMAT problem

2011-02-09 Thread creecode
Hey Daniel,

I thought things were off somewhere.  Just seeing if it was me
first! :-)  I looked at the code for Django v1.2.4 and couldn't see
any signs that the now template tag and friends were even checking for
the predefined formats.

On Feb 9, 9:17 am, Daniel Roseman  wrote:
> On Wednesday, February 9, 2011 3:31:53 PM UTC, creecode wrote:
>
> > Hello all,
>
> > I'm trying to use the now template tag <
> >http://docs.djangoproject.com/en/1.2/ref/templates/builtins/#now>
> > with the predefined format DATE_FORMAT and the now tag seems to be
> > processing the predefined format as a custom format.
>
> > I tried...
>
> > {% now "DATE_FORMAT" %}
>
> > ...and get back...
>
> > WedAMPSTEPST0FebE_February-0800RFebAMPST
>
> > Any thoughts on what I'm doing wrong?
>
> > I'm using Django 1.2.x, have USE_I18N and USE_L10N set to True, and
> > LANGUAGE_CODE is 'en-us' in settings.py.
>
> > Toodle-l
> > creecode
>
> This is very bizarre. Obviously, what's happening is that the string
> "DATE_FORMAT" is being interpreted as a literal date format, instead of a
> reference to your locale's actual date string.
>
> What's even more bizarre is that it appears that the documentation is
> flat-out wrong: the "now" tag does not take the "DATE_FORMAT" parameter,
> like the "date" filter does. No idea why, or why no-one's noticed it until
> now. I've confirmed that this is the case in 1.2.4, and the code hasn't
> changed in trunk. It would be worth raising a ticket for this.

-- 
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: Any advice on why my template inheritance does not seem to be working??

2011-02-09 Thread creecode
Hello Dustin,

I suspect your are confused about how inheritance works.

On Feb 9, 7:43 am, Dustin D  wrote:

> No matter what I do, when I visit the parent, it just displays the
> default value inside {% block problist %} as if the child doesn't
> exist.

I think you are referencing the parent template something like...

return render_to_response ( 'problems_index.html',
context_instance = RequestContext ( request, context ) )

Which only pulls in the parent template because there is no include
tag to pull in the child template.

I think what you need to do is reference the child template in your
view.  Something like...

return render_to_response ( 'problems_index_problist.html',
context_instance = RequestContext ( request, context ) )

I think you'll also need to adjust your template code once you get an
understanding of how the inheritance works.

The relevant view code would help us determine if this is indeed the
case.

Toodle-lo.
creecode

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



now template tag and predefined format DATE_FORMAT problem

2011-02-09 Thread creecode
Hello all,

I'm trying to use the now template tag <
http://docs.djangoproject.com/en/1.2/ref/templates/builtins/#now >
with the predefined format DATE_FORMAT and the now tag seems to be
processing the predefined format as a custom format.

I tried...

{% now "DATE_FORMAT" %}

...and get back...

WedAMPSTEPST0FebE_February-0800RFebAMPST

Any thoughts on what I'm doing wrong?

I'm using Django 1.2.x, have USE_I18N and USE_L10N set to True, and
LANGUAGE_CODE is 'en-us' in settings.py.

Toodle-l
creecode

-- 
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: problem with date and decimal changes between 1.1.1 and 1.2.4

2011-02-07 Thread creecode
Hello Job

On Feb 7, 9:13 am, Jop  wrote:

> I am upgrading a Django project from 1.1.1 to 1.2.4. Unfortunately I'm
> running into some trouble concerning date and decimal formatting in
> 1.2.4.

I don't have an answer but have you looked at the localization file
for nl to see if something has changed between the two versions?  If
so you could modify that to fix the problem short term but of course
that would get overwritten with the next update.  That might be OK if
it is a bug in the localization and it's fixed in the update you
download.

I'm not up on all the localization stuff but perhaps you can modify
the localization file and then put it outside of the normal django
directory and have your install use that file.  Take a look at <
http://docs.djangoproject.com/en/1.2/topics/i18n/ >.

Toodle-l...
creecode

-- 
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: Is there any way to get the ip address of the user in the post_save signal?

2011-02-07 Thread creecode


On Feb 7, 6:38 am, Joel Goldstick  wrote:

> can you use the http request object:
>
> http://docs.djangoproject.com/en/dev/ref/request-response/#quick-over...

I think the problem there is that the HttpRequest object isn't
available by default to the post_save signal.

Some of the ways you might get access to the ip...

Add an ip field to your model and then when processing the POST in
your view attach the ip to your instance then save.  I used this
method myself for a discussion model that tracks the ip of the poster.

If you don't want to store the ip you might try ( untested )
attaching the ip as an attribute to the model instance similar to
above and see if the attribute survives to the post_save signal.

You could also try something similar to the above with the
instance save method but then you wouldn't be handling it at
post_save.

You could also create your own signal system for use when
processing the POST in your view that handles your ip address needs.

It all depends on what you want to do with the ip address.  If you let
us know more about what of your situation we might be able to give
your more ideas.

Toodle-loo
creecode

-- 
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: visually cut off code on djangoproject.com after upgrade?

2011-01-31 Thread creecode
Hello Shawn,

On Jan 31, 12:40 am, Shawn Milochik  wrote:

> I'm seeing the code samples being cut off in the docs as well.
>
> http://docs.djangoproject.com/en/dev/topics/signals/
>
> See sample under:
> Preventing duplicate signals

I'm not seeing <
https://docs.google.com/leaf?id=0B2mWx-jMqJNcODUyMDI4ZmItZTFhMC00Y2VmLTljNGUtOWQ3NGRlZDY0Zjc3&sort=name&layout=list&num=50
> a problem there but perhaps I've missed it.

This is what I saw <
https://docs.google.com/leaf?id=0B2mWx-jMqJNcNGM0YjY4ZTItNGNjMy00MmExLWEzNzAtMzgwOTdmOTI4Y2Rj&sort=name&layout=list&num=50
> when I reported my problem.

Toodle-lo
creecode

-- 
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: ANN: Server upgrade on djangoproject.com

2011-01-30 Thread creecode
Hello Russ,

On Jan 29, 8:53 pm, Russell Keith-Magee 
wrote:

> What exactly do you mean by "visually cut off code"? Can you give a
> specific URL that demonstrates the problem you're talking about?

Sorry.  My intent was to include an example link <
http://code.djangoproject.com/browser/django/branches/releases/1.2.X/django/contrib/admin/views/main.py#L31
> in the original post.  For me this line is visually cut off on the
right.  Probably an overflow: hidden or some such.

If other aren't seeing that than that would be useful for me to know.

Thanks,

Toodle-lo.
creecode

-- 
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: ANN: Server upgrade on djangoproject.com

2011-01-29 Thread creecode
Hello Jacob,

On Jan 28, 12:33 pm, Jacob Kaplan-Moss  wrote:

> I'm starting the switchover to the new djangoproject.com server right
> now.

The source listings seem to visually cut off code.  I don't recall
seeing this issue before the upgrade.

Thanks,

creecode

-- 
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: Adding a new collapsed form in Flatpages

2011-01-22 Thread creecode
Hello TheRedRabbit,

On Jan 22, 12:02 pm, TheRedRabbit  wrote:

> Instead of one form it displayed 3, is there a way to default it to
> display only one
> form?

Perhaps this will do the trick <
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.InlineModelAdmin.extra
>.  Lots of useful information in the docs.

Toodle-loooo.....
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Admin Site: how to add apps with no db model?

2010-12-22 Thread creecode
Hello armandoperico,

Sounds like a job for cron, Celery, or any other number of task
schedulers.

Alternately you could create a url at your website that runs the
script.  Of course putting in appropriate checks so that only you can
run it.

You could then probably customize the admin app index template <
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#templates-which-may-be-overridden-per-app-or-model
> to show your link.  The link doesn't have to be put there of course,
it really could go anywhere that makes sense.

On Dec 21, 4:47 pm, armandoperico  wrote:

> on my "homepage" app i have some helper classes//scripts that are
> responsible for doing some specific "ADMIN" tasks:

> right now i have a script that does that for me, but every time i need
> run it, i have to run it by hand (via terminal).
>
> There is a way to add it on the Admin Site like we do with the models?
> i.e.: "admin.site.register(ModelClass)" or something like this ?

Toodle-lo
creecode

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



  1   2   >