Re: Installing Django

2013-12-12 Thread mulianto
Frederick, Python installer on windows by default install in c:\python 2.x\ And all package like django and others will be under python folder install in libs\site-package\ Better look to use virtenv so you can create a different environment for different project. Thanks Mulianto Blog - Http:

Re: Get memory-use serverside when rendering a view?

2013-12-12 Thread Jonathan D. Baker
There definitely could already be middleware that accomplishes this (I've never looked). Even if you end up writing your own, I think you'll enjoy the process of grokking the django request/response cycle and seeing how powerful middleware can be. Good luck with the task, and cheers. Sent from

Re: Installing Django

2013-12-12 Thread Mike Dewhirst
Frederick On Windows, the easiest (decision-less) way to install Django is using pip or easy-install. Get pip first if you haven't done so already. Django will then end up in exactly the right place and work faultlessly. I recommend it. Virtualenv becomes important when you want to run multiple

Re: Get memory-use serverside when rendering a view?

2013-12-12 Thread Christopher Welborn
On 12/12/2013 06:19 PM, Jonathan Baker wrote: Django is just Python, after all, so you can use the same approach that you would in "regular python scripts". "when a view is rendered" is a pretty vague description of what you're aiming to profile. If your start point is the request coming in to Dj

Re: Installing Django

2013-12-12 Thread Anurag Chourasia
It goes into Lib\site-packages folder. Regards, Anurag On Thu, Dec 12, 2013 at 6:55 PM, Frederick Miller wrote: > For Windows XP, should Django be installed under the Python27 folder? Or > should Django be on the root of the C: drive? > > Frederick Miller > > -- > You received this message bec

Re: Get memory-use serverside when rendering a view?

2013-12-12 Thread Jonathan Baker
Django is just Python, after all, so you can use the same approach that you would in "regular python scripts". "when a view is rendered" is a pretty vague description of what you're aiming to profile. If your start point is the request coming in to Django, and your stop point is the rendered respon

Get memory-use serverside when rendering a view?

2013-12-12 Thread Christopher Welborn
My previous post was lengthy. I just need to find out how much memory is being used server-side when a view is rendered. I know it's possible to do this for regular python scripts, but I'm not sure how to measure my Django site. Django 1.6, Python 3.3, apache2, postgresql. Any help would be much

Re: UpdateView and ImageField style

2013-12-12 Thread Jonathan Baker
Welcome to the mailing list. I've never done this myself, but a bit of Googling leads me to believe that you need to define your own UserProfileEdit form class, instead of letting UpdateView automatically create the form for you. This will allow you to use the FileInput widget and avoid the extrane

Re: Installing Django

2013-12-12 Thread Thomas Lockhart
On 12/12/13 1:55 PM, Frederick Miller wrote: For Windows XP, should Django be installed under the Python27 folder? Or should Django be on the root of the C: drive? I have no experience with Windows installations, but for other platforms virtualenv and pip are a real help for getting repeatabl

Installing Django

2013-12-12 Thread Frederick Miller
For Windows XP, should Django be installed under the Python27 folder? Or should Django be on the root of the C: drive? Frederick Miller -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

UpdateView and ImageField style

2013-12-12 Thread BikerJim
Hi, First post, be gentle :), I cant find a solution here or on StackOverflow, which either means that I am missing something obvious, or the answer is 'you cant', or I am googling for the wrong thing. I am using Django 1.6 on Kubuntu with PIL... I have a simple UserProfile with an image field

[ANNOUNCE] Django 1.6.1 released

2013-12-12 Thread Jacob Kaplan-Moss
Hey folks -- We've just released Django 1.6.1, a bugfix release for last month's Django 1.6 release. More details are in our blog post: https://www.djangoproject.com/weblog/2013/dec/12/django-161/ and in the release notes: https://docs.djangoproject.com/en/1.6/releases/1.6.1/ Enjoy!

Re: Instant Hosting for Django-CMS...No Setup Needed...Demo Inside

2013-12-12 Thread Frank Bieniek
Hi Mark, you have debug turned on. http://198.154.98.107:8000/themes/h-free-software/ and a broken theme. Good luck Am 12.12.2013 20:02, schrieb Mark Moss: *_Top 3 challenges of a django-cms user:_* 1. Are you trying to use django-cms, but got tangled with the complex setup process? 2.

Instant Hosting for Django-CMS...No Setup Needed...Demo Inside

2013-12-12 Thread Mark Moss
*Top 3 challenges of a django-cms user:* 1. Are you trying to use django-cms, but got tangled with the complex setup process? 2. Do you wanna start publishing your content right away with django-cms, without wasting time on setup? 3. Are you looking for beautiful pre-installed the

Different user login after session was closed redirects to previous user last page

2013-12-12 Thread Ricardo Tubio-Pardavila
I am currently developing a Django website and I am using django.contrib.auth and django-security-session for closing user sessions automatically. In case a user leaves its session ope

Annotating queryset with extra duplicates rows

2013-12-12 Thread eXt
Hello! I have the following code: class Comment(models.Model): VISIBILITY_PUBLIC = 'pub' VISIBILITY_PRIVATE = 'private' VISIBILITY_FRIENDS = 'friends' VISIBILITY_CHOICES = ( (VISIBILITY_PUBLIC, 'Public'), (VISIBILITY_PRIVATE, 'Private'), (VISIBILITY_FRIEND

filter an inline queryset based on other fields in the inline form

2013-12-12 Thread Rakesh Ranjan Nayak
Hello, I want to filter queryset for a field in an inline form based on the response of other fields in the same model. Is there a method to do this using custom forms? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this g

Re: Testing Frameworks and Practices(consensus?)

2013-12-12 Thread Arnold Krille
Am Wed, 11 Dec 2013 12:03:44 -0500 schrieb Thomas Murphy : > This seems like a more appropriate forum that SO for this discussion. > > I've been testing my apps with Selenium, which seems to be a popular > choice for Django, but so does unittest and some others, as well as > using coverage to chec

Re: django collectstatic

2013-12-12 Thread Brian Schott
The best way to get help is to paste the errors into a gist (https://gist.github.com) or similar service and post the link. Redact anything that looks like a key or password :-). Brian Schott bfsch...@gmail.com On Dec 12, 2013, at 6:24 AM, kodali srinath chowdary wrote: > while dealing wi

Re: reports

2013-12-12 Thread Derek
There is a tutorial here that seems comprehensive: http://www.geraldoreports.org/docs/tutorial-django.html Assuming you have something basic going, then its best to ask very specific questions - "I tried X (here is my code) and I get this error Y - how to solve..." On Wednesday, 11 December 20

Re: invalid syntax (urls.py, line 10)

2013-12-12 Thread MikeKJ
Cheers DR, Moving on I think there are Klingons now. TemplateSyntaxError at /admin/honorary/member/ Exception Type: TemplateSyntaxError Exception Value: Caught TypeError while rendering: __init__() got an unexpected keyword argument 'core' Exception Location: /home/paston2/webapps/seven

Re: invalid syntax (urls.py, line 10)

2013-12-12 Thread Daniel Roseman
On Thursday, 12 December 2013 13:33:47 UTC, MikeKJ wrote: > > Warning: This is a port from 0.97 to 1.3.7 (thanks DR) > > The front end of the site is working just the admin is being difficult > SyntaxError at /admin/honorary/member/ > > invalid syntax (urls.py, line 10) > location > /home/paston2/

invalid syntax (urls.py, line 10)

2013-12-12 Thread MikeKJ
Warning: This is a port from 0.97 to 1.3.7 (thanks DR) The front end of the site is working just the admin is being difficult SyntaxError at /admin/honorary/member/ invalid syntax (urls.py, line 10) location /home/paston2/webapps/sevenkbw/lib/python2.7/django/utils/importlib.py in import_module

Re: porting edit_inline=True to admin.py

2013-12-12 Thread MikeKJ
Hi Daniel Sorry, I believe it was v0.97 and yes I have been chunking through it for a few days now, I have the front end fully working on python2.7 django v1.3.7 mod_wsgi 3.4 I just wanted confirmation on the admin.py for that model as the 0.97 construct for the foreign key relationships alth

Re: porting edit_inline=True to admin.py

2013-12-12 Thread MikeKJ
Hmm just found this http://stackoverflow.com/questions/9738995/django-admin-with-multiple-inlines-of-the-same-model which would make the line of admin.py inlines = [Publications, Paragraphs,]? but I am still getting an error of SyntaxError at /admin/honorary/member/invalid syntax (urls.py, line

django collectstatic

2013-12-12 Thread kodali srinath chowdary
while dealing with collectstatic i once performed it with some setting in it and it was copied into the admin file later i changed the setting and path name then i tried django-admin collectstatic command its now showing errors what colud be the problem -- You received this message because

porting edit_inline=True to admin.py

2013-12-12 Thread MikeKJ
This is the old model.py that works well in that paragraphs and publications are part of the author model in admin [code] class Author(models.Model): name = models.CharField(max_length=200, help_text="eg Sir John Smith KCMG") picture = models.ImageField(upload_to='honorary_member_images'