Re: Some Django unit tests fail...

2008-06-24 Thread Peter Melvyn
> On Fri, Jun 20, 2008 at 1:07 AM, Peter Melvyn <[EMAIL PROTECTED]> wrote: > > Yes, it is the intention. If Django requires test database with > > charset UTF8, IMHO it should create it using related clause. as well > > as proper engine should be choosen

Re: Data truncated for column change_message

2008-06-24 Thread Peter Rowell
I don't know if this is the problem, but I've noticed that inspectdb can generate wrong max_length for CharFields. Check the lengths in the database vs. the lengths in your models. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: base template and views

2008-06-26 Thread Peter Rowell
EXT_PROCESSORS listed in the settings.py file. HTH, Peter --~--~-~--~~~---~--~~ 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 unsu

Re: Django setup with apache

2008-06-26 Thread Peter Rowell
You didn't share with us the specific error you are getting. I strongly recommend a) DEBUG=True in settings.py, and b) checking your Apache error_log. If you are getting a generic Apache 404, then the problem will be in the Apache httpd.conf or .htaccess files. If you are getting a Django 404, t

Computed m2m relationships not being saved when in Admin

2008-06-29 Thread Peter Rowell
Short version: during a Save from the Admin interface, m2m associations computed and applied as a side effect of calling save() do not seem to be recorded (permanently?) in the database. The same call from a view or a standalone script works. Longer version: I have the following class:

Re: Querying a User profile

2008-06-29 Thread Peter Rowell
> Any advice on how to query User for a particular team name? Since the relationship is between Team and UserProfile, I believe that's where you need to start. Something like this would work: team = Team.objects.get(team=team_name) ups = UserProfile.objects.filter(team=team) users = [up.user for

Re: HTML Email

2008-07-02 Thread Peter Melvyn
ntent types" in http://www.djangoproject.com/documentation/email/ Peter --~--~-~--~~~---~--~~ 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 unsu

Re: syncdb

2008-07-05 Thread Peter Melvyn
On 7/5/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Thanks a lot!! I am used to rails. Hopefully django will have some > sort of db migrate ability in the future. Django has a separated project http://code.google.com/p/django-evolution/ for such

Re: pluggable django ticketing app?

2008-07-07 Thread Peter Herndon
on the app. It was started both to scratch an itch, and as a training exercise for our new-to-Django members. Thanks, ---Peter Herndon http://spookypony.com On 7/6/08, Milan Andric <[EMAIL PROTECTED]> wrote: > > On Sun, Jul 6, 2008 at 12:05 AM, chefsmart <[EMAIL PROTECTED]> w

Re: looking to override some admin save features

2008-07-07 Thread Peter Herndon
Bumping doesn't help, and just makes you look impatient. If you want a more immediate answer, log in to the #django IRC channel on freenode. Aside from that, it sounds like you want the newforms-admin branch. Search for that on the wiki. ---Peter Herndon On 7/7/08, [EMAIL PROTECTED] &l

Re: Inserting html into a page dynamically

2008-07-07 Thread Peter Herndon
a database, or something like that, you can write your AJAX to call a Django view. You would write that view to do the calculations required, and return the data as XML or JSON. ---Peter Herndon On Mon, Jul 7, 2008 at 4:48 PM, Bear <[EMAIL PROTECTED]> wrote: > > Hi > > I

Re: "ColorField"?

2008-07-08 Thread Peter Herndon
You'll want to check out django.db.models.fields, django.db.models.fields.subclassing, and django.core.validators as starting points for creating a new Field type with a custom validator. In addition, there's a js attribute for class Admin you can use to bring in the necessary JavaScript into adm

Re: Issue with django-tagging 0.3 (svn) with models definition

2008-07-08 Thread Peter Herndon
For a more immediate answer, ask on #django on IRC. Mailing list may not answer as quickly as you'd prefer. Or at all, if nobody has the time to answer. You should look at the model documentation for specifics, but you likely need null=True as a param in your tags=Tagfield() declaration. ---Pet

Re: "ImportError No module named django"

2008-07-09 Thread Peter Herndon
Yes, the install worked. If you can import a module without error, it's installed successfully. Mostly. ;) You can also successfully import a module even if it is not on PYTHON_PATH, if you are in the same directory as the module. ---Peter Herndon On 7/9/08, MadMax007 <[EMAIL P

Re: Creating a Scheduled Task

2008-07-12 Thread Peter Rowell
> I can do > this "outside" Django with Cron and a script that uses the standalone > ORM, but is there any way to incorporate this into admin so I can see > what tasks are run and when? Well, you are probably still going to have cron (or equivalent) in there somewhere because you need something t

Re: Accessing User Object From Template

2008-07-12 Thread Peter Rowell
bclassing-context-requestcontext And in particular, read about django.core.context_processors.auth. Then you can {{user}} to your heart's content. HTH, Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Really, really bad performance

2007-02-23 Thread Peter Aarestad
– it was just as slow. Turning off debugging also didn't help any – it was equally slow. So are we doing anything here that's particularly inefficient? If so, what can we do better? I'd be glad to provide other info if necessary. Thanks! -peter -- Peter M Aarestad [EMAIL PROTECTED] Du

Grabbing a list of years, months, etc.

2007-05-12 Thread Peter Sanchez
ntaining a DateTimeField? I know I could do it myself, using lists + sort, but I was hoping there was a quick django way to generate the data. Any ideas? Thanks, Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &qu

Best Place To Start Learning Django/Python

2007-05-23 Thread Peter Pluta
I don't really have any programming experience outside of hacking up a few lines of php, but it'd like to start learning python and the django web framework. I haven't been able to find too many intuitive guides like those for php, so i'd thought i'd ask here. Does anyone have any good suggestion

ForeignKey to ForeignKey

2007-05-31 Thread Peter Sanchez
I have 3 models, Shift, Person & Shiftmap. class Shift(models.Model): name = models.CharField() date = models.DateTimeField() class Person(models.Model): first_name = models.CharField() last_name = models.CharField() class Shiftmap(models.Model): shift =

django-beancounter accounting app

2007-06-01 Thread Peter Baumgartner
Just wanted to ping the list with a code project I uploaded today. http://code.google.com/p/django-beancounter/ Django-beancounter is a simple app I built to track my income and expenses as a freelancer. It has a handful of reports built into the Django admin interface and uses Plotkit for pretty

Re: When 1.0 ?

2007-09-11 Thread Peter Melvyn
nions I tend to: http://groups.google.com/group/turbogears/browse_thread/thread/d3998a4e750c39c9/4d7710c0297e36c3 Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

random Unhandled Exceptions

2007-09-11 Thread Peter Baumgartner
I'm serving a Django site via fcgi with lighttpd. Just recently I've started getting Unhandled Exception errors (on a blank white page, not my Django 500.html page) at seemingly random times. A refresh will fix the problem. I've attached the traceback I see in the lighttpd log below. It looks lik

Re: random Unhandled Exceptions

2007-09-12 Thread Peter Baumgartner
On 9/12/07, Iapain <[EMAIL PROTECTED]> wrote: > > It looks like yet another unicode bug. Could you tell me your Django > version. I've tried r6107 and r6050 and both seem to do it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Re: Populating a form

2007-09-13 Thread Peter Melvyn
On 9/11/07, Ole Laursen <[EMAIL PROTECTED]> wrote: > You can also use the initial parameter when instantiating the form: And how to solve situation when you've processed posted data and in the next step you need to redisplay the same form with some values reset to initial v

Re: Populating a form

2007-09-13 Thread Peter Melvyn
On 9/13/07, MikeHowarth <[EMAIL PROTECTED]> wrote: > Look at form_for_instance in newforms: I am not sure if it could help me. I try to demostrate my problem on the view fragment handling post request: form = MyHTMLForm(request.POST) if not form.is_valid(): # will render bound form else: tr

ANN: django-admin-uploads (media browser for django admin)

2007-09-13 Thread Peter Baumgartner
http://code.google.com/p/django-admin-uploads/ File/media browser for Django admin interface. Designed to insert images and files into textareas in the admin interface with a simple GUI interface. Just posted this on Google Code. Thought some of you might find it helpful. -- Pete --~--~---

Re: ANN: django-admin-uploads (media browser for django admin)

2007-09-13 Thread Peter Baumgartner
On 9/13/07, Dmitry Shevchenko <[EMAIL PROTECTED]> wrote: > Oh, and i think that it would be a great idea to provide some way to show > uploaded data only for specific item (e.g. article, news). Not on my priority list, but it's open-source, have at it :) --~--~-~--~~~

Re: file upload/download management in Django

2007-09-14 Thread Peter Baumgartner
> Also, we're looking for a suitable application that can be used for file > upload/download management. There appear to be a number of different > candidates available, so I'd appreciate suggestions. The features we are > looking for are > You may want to check out FileBrowser: http://trac.dedho

Re: Django Flatpages With Memcache as storage location

2007-09-16 Thread Peter Pluta
Peter Pluta wrote: > > > > > On Sep 9, 8:52 pm, Brian Morton <[EMAIL PROTECTED]> wrote: >> What happens if you use a simple or dummy cache? >> >> On Sep 9, 2:51 pm, Sasha Weberov <[EMAIL PROTECTED]> wrote: >> >> >>

django-admin-uploads now has YouTube support and image editing

2007-09-18 Thread Peter Baumgartner
I've been tinkering some more on this project and added on the fly image editing via snipshot.com as well as preliminary support for browsing and inserting YouTube videos http://code.google.com/p/django-admin-uploads/ -- Pete --~--~-~--~~~---~--~~ You received t

Re: help with fixtures

2007-09-19 Thread Peter Klein
e tries to update the rows and throws 'duplicate key'-errors. Make sure you truncate all tables before 'loaddata' and you'll be fine. Greetings, Peter On 23 Aug., 21:15, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I have quite complex application a

Re: Django deployment options

2007-09-19 Thread Peter Baumgartner
On 9/19/07, Steve Potter <[EMAIL PROTECTED]> wrote: > > I currently have a dedicated server running a Cpanel installation with > several virtual hosts. I would like to install Django on this server > and as far as I can tell, I have several options. > > 1. Add mod_python to existing Apache inst

Re: Django Flatpages With Memcache as storage location

2007-09-26 Thread Peter Pluta
Ross Poulton wrote: > > > Try creating a template called '404.html' (Even if it's empty for > starters; but you should put a useful message in there before go-live) > and see if your flatpages work with Debug turned off. > > > > > > I have the 404.html in approot/templates/ and it still

MS SQL and Django - Any current info?

2007-11-01 Thread Peter Bailey
hard to put schedules and dates to specific things, but if anyone can give me a realistic guess at when this support will be included (assuming it will be), I would greatly appreciate it. Thanks, Peter --~--~-~--~~~---~--~~ You received this message because yo

Re: MS SQL and Django - Any current info?

2007-11-02 Thread Peter Bailey
Thanks Carl. I'll give it a go. Cheers, Peter On Nov 1, 7:11 pm, Carl Karsten <[EMAIL PROTECTED]> wrote: > Peter Bailey wrote: > > Can anyone tell me if there is any current news about MS SQL support? > > I am looking at frameworks for a client, and my preferen

New Program Send Big File Fast and Easy Apply For FREE!!!

2007-11-22 Thread peter borman
WHO WE ARE YouSendIt is the No. 1 digital file delivery company serving business and individuals businesses who want a easy, secured, reliable and faster way to SEND, RECEIVE and TRACK DIGITAL FILES. YOUSENDIT SOLUTION We replace the hassles of dealing with unreliable FTP servers, eliminate the fr

New Program Send Big File Fast and Easy Apply For FREE!!!

2007-11-23 Thread peter borman
WHO WE ARE YouSendIt is the No. 1 digital file delivery company serving business and individuals businesses who want a easy, secured, reliable and faster way to SEND, RECEIVE and TRACK DIGITAL FILES. YOUSENDIT SOLUTION We replace the hassles of dealing with unreliable FTP servers, eliminate the fr

Re: Non-programmer looking to create more sophisticated site

2007-12-07 Thread Peter Herndon
ates/ I'd also suggest you work your way through the tutorial, as it covers the basic aspects of building a Django-powered site. ---Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&quo

Re: Import RSS headlines from feeds into django based pages.

2007-12-11 Thread Peter Baumgartner
> I want to add in a django page some rss feeds from another websites, > like headlines from news portals. how can I do that without > javascript, java and inline frames? > http://www.djangosnippets.org/snippets/384/ --~--~-~--~~~---~--~~ You received this message

sending >500 emails using send_email in a for loop

2007-12-18 Thread Peter Baumgartner
I've built a newsletter app that currently cycles through 500+ emails and I'd like to have it scale to handle more. Currently I just have code like this in my view: for recipient in email_list: msg = EmailMultiAlternatives(email.subject, email.message_text, email.sender, [recipient]) msg

Re: Form result notices

2007-12-20 Thread Peter Herndon
sful save, you could use Ajax to send back to your page notification of successful save, and the Javascript could display the notification. It rather depends on what makes sense for your application. So tell us more about what you are trying to accomplish. ---Peter --~--~-~--~~-

Re: How do I connect to development server with my browser?

2008-01-02 Thread Peter Rowell
> My son gave me some space to play in on an Apache server he rents. Is this a dedicated server or a shared hosting account? Dedicated? Carry on. Shared? Watch out! Many shared hosting providers frown on (or outright forbid) "long running processes." Without thinking about what I was doing, I s

Re: Can I use a underscore in my url to separate variables?

2008-01-02 Thread Peter Rowell
(This is hedronist in his disguise as himself, whatever that means.) > www.mysite.com/sprint_cellular_M1000/ Ah, something specific. Of course, it doesn't look like what you first posted, but I kind of suspected that. I'll say it one more time, if you have a specific problem, then you need to sp

Re: sitemaps for subdomains

2008-01-02 Thread Peter Rowell
> How can I add URLs with sub-domains to my sitemap files? If you are talking about XML sitemaps, you can't. >From http://www.sitemaps.org/protocol.php: Note that this means that all URLs listed in the Sitemap must use the same protocol (http, in this example) and reside on the same host as the

Re: Templates with multiple repeating blocks

2008-01-02 Thread Peter Rowell
> Use the user defined inclusion template tag or {% include %} standard > taghttp://www.djangoproject.com/documentation/templates_python/#inclusio... @Alex: That's not what he was asking for. He wants to be able to have multiple blocks with the same name in a parent template and have them get the

Re: How do I connect to development server with my browser?

2008-01-02 Thread Peter Rowell
> If I run the dev server briefly, that won't cause any problems, will it? It all depends on your hosting company. When in doubt, ask. It's not that you are port-scanning their accounting machine, but you are creating a "long running process" (i.e. it doesn't just generate a page and exit) that i

Re: Form/manipulator advanced tutorial?

2006-10-06 Thread Peter Klein
the changes? We're currently developing an application with a lot of forms and I would like to reduce the refactoring to a minimum. Greetings, Peter Klein --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djan

Re: Form/manipulator advanced tutorial?

2006-10-09 Thread Peter Klein
Thanks for the link! This is what I was looking for. Greetings, Peter --~--~-~--~~~---~--~~ 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@googlegro

Re: Pro Django Book preview

2006-10-17 Thread Peter Bailey
It would be cool if Apress could use some type of process with that book like Dave Thomas did with Agile Web Development With Rails (and some of their other titles). The Pragmatic Programmers released early beta versions of the book in pdf format, automated input from their readers to deal with er

Re: I am really new, but I found a few problems using it, or am I wrong?

2006-11-05 Thread Peter Ma
you need the python with data module. On 11/6/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Thanks James, > > I figured it out after a while, but it seems not to be a good idea to > install development version. I did that and made a mess of my computer. > I guess there is a version catch u

Re: pure-HTTP deployment?

2006-12-20 Thread Peter Ma
what's the pure-HTTP deployment mean??? On 12/21/06, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: On 12/20/06 10:46 PM, Jeremy Dunck wrote: > http://us.pycon.org/TX2007/TutorialsPM#PM1 Oh, God -- who the hell put *that* picture there? I have got to change that... Jacob > -- [EMAIL PROTE

floatfield( blank=True ) wierdness

2007-01-07 Thread borough peter
Hi list, Yet another django newbie In my model I would like to have a float field that is allowed to be empty, so I write: class xxx( models.Model ): myfloat = models.FloatField( decimal_places=6, max_digits=9, blank=True ) Yet the admin interface doesn't allow me to leave it empty: I

Re: Django without database

2006-05-12 Thread Peter Ma
can Django's database-roadmap add XML or CSV ./etc On 5/12/06, Vladimir Pouzanov <[EMAIL PROTECTED]> wrote: > > You can use sqlite, fast and easy db interface. > > On 5/12/06, Anja <[EMAIL PROTECTED]> wrote: > > > > Hi, > > we are thinking about creating a small application with Django and > > de

Re: Django without database

2006-05-12 Thread Peter Ma
I think django has automatic CRUD method to any DB object, So, without DB maybe so diffcult on It's archieve . On 5/12/06, Peter Ma <[EMAIL PROTECTED]> wrote: > can Django's database-roadmap add XML or CSV ./etc > > On 5/12/06, Vladimir Pouzanov <[EMAIL PROTECTED]

Re: Changing Sites Framework

2006-06-18 Thread Peter Ma
what are you want to say? On 6/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hello, > I am working on a cms that would involve several sites. I am wanting > to filter several things by site, but the domain names are sometimes > too long and run off the side of the filter box. I was wo

Re: "No module named models.auth" magic-removal confusion?

2006-06-21 Thread Peter Ferne
Hi GrigoryOn 6/21/06, Grigory Fateyev <[EMAIL PROTECTED]> wrote: http://code.djangoproject.com/wiki/RemovingTheMagic#IncludetemplateextensionexplicitlyI don't think that's the problem. In my urlconf I have:     (r'^json/trails/(?P\d+)/$',    'trail_detail_json',    {'template_name': 'json/d

Make Django cooexist with other webbapps

2006-08-17 Thread Peter Brink
configured as a virtual host and have an .htaccess file with a RedirectMatch rule point to the Django app. Any one has any suggestions? Can it be done by using Djangos URLconf? TIA, Peter Brink --~--~-~--~~~---~--~~ You received this message because you are subscribe

Re: Make Django cooexist with other webbapps

2006-08-17 Thread Peter Brink
I use it also for other static files like robots.txt or favicon.ico, > so they don’t have to pass through Django but get served right ahead > from Apache. > Aha... thanks! How easy does not problems seem when you have the right answer. :-) /Peter Brink --~--~-~--~~---

Exception raised when calling "save()" on simple model object.

2005-10-25 Thread Peter Havens
Using Django revision 1011, I defined an app called "audit". I defined a model for that app as follows: class StatusType(meta.Model): description = meta.CharField(maxlength=100) ...I tried testing it like this: >>> from django.models.audit import * >>> s = statustypes.StatusType() >>> s.des

unable to open /usr/lib/python2.4/config/Makefile (No such file or directory)

2005-12-09 Thread peter ma
OS is debian SID error: invalid Python installation: unable to open /usr/lib/python2.4/config/Makefile (No such file or directory)

Re: Django, mod_python error

2006-01-15 Thread peter ma
The same question I meet, not resolve yet

Re: Apache2 mod_python VirtualHost configuration

2006-01-16 Thread Peter Ma
expect solutionthe same question 2006/1/17, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: Actually, I had messed up my DocumentRoot and /etc/host file which waspointiong to my PHP projects path. The Welcome screen was from symfony framework, which I had installed previously.Now, after I fixed it, I'm gett

Re: mod_python & devserver & apache restart

2006-02-21 Thread Peter Harkins
e run it on Dreamhost and accessed it from home, as have outside clients. You'll need to remember to use a port above 1024 and include this in your URL: eg. http://example.com:1025/ - -- Peter Harkins - http://push.cx -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comme

Re: Django in a Load-Balanced environment (ORM issues) ...

2006-02-28 Thread Peter Harkins
like thread programming, where getting variables into a known state requires some kind of locking. Note that I'm not saying "don't do it" or "it's always bad", I'm just asking "please don't do it by default". And to touch on an earlier top

Re: How does one access the human readble names given in the model

2006-03-01 Thread Peter Harkins
v.__class__.__name__ is what you're looking for. It's a Python design feature, not a Django thing. - -- Peter Harkins - http://push.cx -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: If you don't know what this i

TemplateDoesNotExist at /

2022-06-04 Thread peter softy
TemplateDoesNotExist at /home.html Request Method: GET Request URL: http://127.0.0.1:8000/ Django Version: 4.0.3 Exception Type: TemplateDoesNotExist Exception Value: home.html Exception Location: C:\Users\softy\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\loader.py,

Mobile App

2022-09-04 Thread Peter Kirieny
Hello team Django, I have a fully functioning website how can I easily turn it into a mob app please ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-use

MANAGE.PY RUNSERVER ERROR

2022-11-15 Thread Peter Mwai
Hello experts, I was trying to start the server using 'python manage.py runserver' but encountered this error, Exception ignored in thread started by: .wrapper at 0x0202E609EDE0> Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\si

Re: MANAGE.PY RUNSERVER ERROR

2022-11-16 Thread Peter Mwai
incerely, > > Raúl Luján Delgado > > > > > > El mié, 16 nov 2022 a las 6:10, 'Kasper Laudrup' via Django users (< > django-users@googlegroups.com>) escribió: > >> On 15/11/2022 18.49, Peter Mwai wrote: >> > Hello experts, >> > I was

Re: MANAGE.PY RUNSERVER ERROR

2022-11-16 Thread Peter Mwai
pes, sessions. Django version 4.1.3, using settings 'pyshop.settings' Starting development server at http://127.0.0.1:8000/ On Wed, 16 Nov 2022 at 16:10, Balogun Awwal wrote: > > What is the output given > Sent from awwal > > On 16 Nov 2022, at 1:23 PM, Peter Mwai wrote:

Re: Homakov-esque Django Vulnerabilities

2012-03-06 Thread Peter Murphy
t programmers are encouraged to do the right thing by the framework. You could set up a vulnerability that allows attackers to add every British PM in your Users model (from Walpole to Cameron) via a GET request. But you'd have to sabotage your own code to do so. Or am I missing something?

Re: Abridged summary of django-users@googlegroups.com - 38 Messages in 13 Topics

2012-03-30 Thread Peter F.
-- 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

How to adopt command line options in custom management command?

2012-05-12 Thread Peter Stahl
ptions? In which way do I have to configure the existing custom management command to accomplish that? Any idea? Thank you very much in advance! Best, Peter -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send ema

Python FAQ: Webdev

2012-05-12 Thread Peter Murphy
dev/ The site recommends "Flask" by the way - not Django. The author thinks it is too heavyweight for his or her uses. But there seems to be a lot of ideas in the article about how to make a framework that seem to be captured in Django. Best regards, Peter [* http://me.veekun.com/blog/201

Creating an user/password management app

2012-05-13 Thread Peter Steinmetz
flected in the legacy DB. Is there an easy/obvious way to achieve this? Peter -- 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 em

Re: Creating an user/password management app

2012-05-13 Thread Peter Steinmetz
ng from the things it offers. I think I'll implement the user management app some other way and look for something to make my first Django app where Django will really help me get things done. Thanks, Peter -- You received this message because you are subscribed to the Google Groups &quo

Job in Newcastle NSW

2012-06-05 Thread Peter Williams
://www.nswrdn.com.au/site/index.cfm?display=57772 If you know anyone who might be interested, please direct them to the URL above. Applications close 25 June 2012. Cheers Peter -- Peter J Williams Information Manager NSW Rural Doctors Network Head Office Suite 19, Level 3 133 King Street Newcastle

Ranking Queryset

2012-06-19 Thread Peter Ung
d get a QuerySet with filter and order_by functions still intact? I'm currently using the jQuery DataTables with Django to generate a leaderboard with pagination (which is why I need to preserver filtering and order_by). Thanks in advance! Sorry if I did not post my question correctly - any help

Re: Ranking Queryset

2012-06-20 Thread Peter Ung
> > > Book.objects.all().annotate(rank=Sum('votes__score')).filter(rank__gt=0).order_by('rank') > > Hope that helps. > > * Code isn't tested > > On Tuesday, 19 June 2012 13:27:21 UTC-4, Peter Ung wrote: >> >> Hi All, >> >> I

Re: A very basic question with Django

2012-10-10 Thread Peter Murphy
t Forgeries? The form classes prevent such things occurring. > Q: Is Django a substitute to CGI for dynamic web generation. > > It sounds better than bog standard CGI, where every request spawns a new process. > Q: Can i use Django for development of a full fledged website. &g

Re: Beginner a bit lost - need some pointers please

2011-10-05 Thread Peter Herndon
e short version is that the built-in server was built as a just-good-enough-to-use-while-developing solution, and is not sufficient to handle more than a minimal load. The trade-off is that configuring apache2 + mod_wsgi, or nginx + gunicorn, is more complex than just running the devserver. Hope this

Viewing IP address in the login screen, using Django authentication

2011-10-10 Thread peter-ctp
something like.. Your IP address is {{ipaddress}} or Your IP address is {{form.ipaddress}} Help! Peter -- 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 unsubscr

Re: block behavior does not work as documented with respect to autoescape

2011-10-26 Thread Peter Banka
Awesome! Thank you. On Tue, Oct 25, 2011 at 8:10 AM, psbanka wrote: > In the current Django 1.3 documentation on templates > (https://docs.djangoproject.com/en/1.3/topics/templates/#for-template- > blocks), the documentation mentions the following: > > "The auto-escaping tag passes its effect on

Re: FAQ app 2011

2011-11-07 Thread Peter Herndon
ic requirements that could be addressed. Were I to need an app for FAQs in a new project, I'd probably use django-fack at this point, as the code base is a little cleaner. Hope that helps, ---Peter Herndon On Nov 5, 2011, at 12:37 PM, Mike wrote: > I've been searching for a

Very strange KeyError on 'PORT' in db/backends/mysql/base.py

2011-11-23 Thread Peter Bengtsson
terbe/dev/MOZILLA/PTO/pto/vendor/src/django/django/utils/unittest/case.py", line 339, in run testMethod() File "/Users/peterbe/dev/MOZILLA/PTO/pto/apps/users/tests.py", line 310, in test_mozilla_ldap_backend_basic user, created = back.get_or_create_user('peter',

Re: List of Django release dates?

2011-12-10 Thread Peter Herndon
The info is available in the Django project blog (https://www.djangoproject.com/weblog/), though you will need to do some spelunking to find the release dates. You can also find the release dates in the mailing list archives, for example, search for "released" in the Django-developers Google group.

Re: Directory layout for a large Django application (not project)

2012-01-09 Thread Peter Portante
Sounds like advice from the Department of the Redundancy Department. ;) I have always wondered why Django needs to rely on the directory hierarchy for name spacing templates. On Mon, Jan 9, 2012 at 6:29 AM, Tom Evans wrote: > On Sat, Jan 7, 2012 at 7:24 PM, IgorS wrote: > > Can someone recommen

Request for inspiration on business system

2012-11-20 Thread Peter Edström
Book, watching YouTube videos and exploring code as much as I can. Thank you. Best regards, Peter -- 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-user

Re: Request for inspiration on business system

2012-11-21 Thread Peter Edström
*Lachlan Musicman:* You recommend using virtualenv. Why and in what scenarios? If I understand it correctly, virtualenv sets up a virtual python environment galvanically isolated from the rest of the system and I see how this let you go crazy and experiment without risking anything. Is this the

Retrieve current user id in urls.py

2012-11-27 Thread Peter Edström
Hello, I've set up a user profile according to thisand now I'm trying to access the id of the currently logged in user in my urls.py, like this: # urls.py > from django.contrib.auth.decorators impo

Re: Retrieve current user id in urls.py

2012-11-28 Thread Peter Edström
Thank you. It's quite logical when you know it. :-) > This isn't something you do in the urlconf. You do that in your view, > where the current user is available already as `request.user`. > -- > DR. > -- You received this message because you are subscribed to the Google Groups "Django users

Drop foreign key, add another - keep data

2012-11-30 Thread Peter Edström
Hello, I'd like to drop a ForeignKey-field and add another using south (mysql database), but it won't work. Googling it takes me not far, but it seems to be a problem with dropping foreign key constraints with InnoDB. What is the recommended way ot dropping a ForeignKey-field, and adding anothe

Re: Python Multiprocessing With Django

2012-12-16 Thread Peter Schmidt
Just in case someone else stumbles across this old thread. TLDR: The recipe may be able to be improved - I only needed to close the connection in the parent Python process, not in the child process. -- Best guess hypothesis as to what's going on is when you fork a process, the OS (e.g. OSX Moun

Re: Django 1.4.3 contact_form

2013-03-05 Thread Peter Chibunna
def contact(request): if request.method == 'POST': #checks if the request method was a post, i.e. if the form has been submitted #and initializes the form with the data that was submitted form = ContactForm(request.POST) if form.is_valid(): #if form validation passed, do y

Re: New to Django & Programming - Trying to work with the tutorial. How to edit mysite/settings.py

2013-03-05 Thread Peter Chibunna
There's exactly no command that you need to achieve what you are asking here. The "settings.py" file is a file -like the name suggests- that contains settings for your django web application. This includes database pointers, database credentials, applications in your site, and all those things

Re: ANN: django-otp and friends: one-time passwords and trusted agents

2013-07-01 Thread Peter Sagerson
tion for Django > but I don't think many people will know where to start when it comes to using > it (myself included). > > On Wednesday, September 12, 2012 1:27:26 PM UTC-7, Peter Sagerson wrote: > I recently released a suite of packages to support two-factor authentication

Re: ANN: django-otp and friends: one-time passwords and trusted agents

2013-07-03 Thread Peter Sagerson
of django-otp and django-otp-agents are available. Thanks so much for your feedback. Do keep in touch either here or privately to let me know how it works out. Peter On Jul 2, 2013, at 4:42 PM, Jason Arnst-Goodrich wrote: > I think I found one more nicety to add. >

Re: ANN: django-otp and friends: one-time passwords and trusted agents

2013-08-09 Thread Peter Sagerson
ome scenario, let me know. Of course, if you're only using the two-step flow above, this will be moot. Thanks, Peter On Friday, August 9, 2013 11:54:01 AM UTC-7, Jason Arnst-Goodrich wrote: > > After being sidetracked with unrelated work I'm finally back to > implementing t

Re: ANN: django-otp and friends: one-time passwords and trusted agents

2013-08-09 Thread Peter Sagerson
I imagine that would work. Generally speaking, if you want to use a multi-page flow to atomically mutate some state (in this case auth status), you're pretty much into form wizard territory. For specific scenarios, there may be workarounds--potentially a bit sneaky and underhanded--that produce

<    1   2   3   4   5   6   7   8   9   10   >