Re: Exception happened during processing of request from ...

2019-02-11 Thread Jon bae
Am Freitag, 8. Februar 2019 13:24:01 UTC+1 schrieb Pedram Badakhchani: > > I am getting similar errors, also running Django 2.15 with python 3.72, > would be very interested if you have found a solution > > No, sadly I did not found a solution. Maybe django is not 100% compatible with python

Exception happened during processing of request from ...

2019-01-31 Thread Jon bae
Hello, I'm running here *django 2.1.5* with *python 3.7.2* (installed with homebrew) on a macOS (mojave). On a regular basis I get this error message: Exception happened during processing of request from ('127.0.0.1', 54882) Traceback (most recent call last): File

Re: Constant Invalid HTTP_HOST header spam

2017-12-19 Thread Jon Ribbens
On Tuesday, 19 December 2017 13:37:06 UTC, Daniel Hepper wrote: > > This should ensure that only requests with valid Host headers reach your > application while still supporting Non-SNI clients. You can test it with > "open_ssl client" or "gnutls-cli": > Yes, that looks good to me. Many thanks!

Re: Constant Invalid HTTP_HOST header spam

2017-12-19 Thread Jon Ribbens
On Tuesday, 19 December 2017 07:24:23 UTC, Antonis Christofides wrote: > > I may be wrong of course, but I don't recall SNI having anything to do > with it. Just using something like > > server { > listen 80; > listen 443 ssl; > server_name my.django.site.com; > ... > } > > will

Re: Constant Invalid HTTP_HOST header spam

2017-12-18 Thread Jon Ribbens
On 18 Dec 2017, at 23:26, Antonis Christofides wrote: > the documentation describes how to silence this error at > https://docs.djangoproject.com/en/2.0/topics/logging/#django-security. > It’s not obvious from that how to silence it only for IP literals. I’d

Constant Invalid HTTP_HOST header spam

2017-12-18 Thread Jon Ribbens
I'm getting spammed with constant "Invalid HTTP_HOST header: '10.9.8.7:443'. You may need to add '10.9.8.7' to ALLOWED_HOSTS" emails, due to the Internet being the Internet. How can I disable these emails, without turning off error emails completely? I don't particularly want to add the IP

import different entries using filter

2017-06-19 Thread jon stan
hey im trying to import one set of info from a database based on the name of something else if that makes sense. basically in the database its setup like this: food- restaurant-name products type of service

Re: type error issue

2017-06-19 Thread jon stan
That was it. thanks Andreas. -- 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-users+unsubscr...@googlegroups.com. To post to this group, send email to

type error issue

2017-06-12 Thread jon stan
So i keep getting this error every time i try to pass a variable in http. in my template i have a link that contains the variable of a county in a state: *template.html* {{ cnty }} when you click the link i guess it goes to the urls file: *urls.py* url(r'^region',

Python / Django newbie looking for mentorship

2017-03-19 Thread Jon Hickam
be flexible. If you are interested send me a quick note with what your experience is and what sort of compensation rate you would be looking for and we can work out a time to chat. Cheers! Jon -- You received this message because you are subscribed to the Google Groups "Django

Re: Foreign Key data not showing in formset

2017-02-08 Thread jon
, 2017 at 8:00:52 AM UTC-5, jon wrote: > > I have the following view with an inlineformset for two models: > >1. Orders, the master / parent model >2. LineitemInfo, the detail / child model. > > FormSet > > > LineFormSet = inlineformset_factory(Orders, Lin

Foreign Key data not showing in formset

2017-02-08 Thread jon
I have the following view with an inlineformset for two models: 1. Orders, the master / parent model 2. LineitemInfo, the detail / child model. FormSet LineFormSet = inlineformset_factory(Orders, LineitemInfo, can_delete=True, exclude = ('ordernotes',)) The edit order_edit

Master-Detail Form help needed

2017-01-16 Thread jon
I have been struggling mightily with Master-Detail forms in Django. I have done a number of online tutorials but have yet to find a complete tutorial which completely explains models, views, templates, URL patterns related to master-detail forms. I use the Oracle toolsets where creating a

Re: Django project beginner

2016-12-28 Thread jon
I would recommend the Django Girls tutorial. It is very well written and easy to follow. I covers most of the components that you will need to get started with Django and is a good starting point. https://tutorial.djangogirls.org/en/ On Monday, December 26, 2016 at 6:39:25 AM UTC-5, imed

'RegexURLResolver' object has no attribute 'default_args'

2016-12-23 Thread jon
I am a newbie to Django, coming from PHP/Yii. I have gotten to the part 4 of the official Django tutorial but can't seem to get by this error. I have looked online and in this forum but cannot find anything on this specific error. Error: AttributeError at /polls/1/vote/ 'RegexURLResolver'

Re: FileField with UUID filename

2016-09-06 Thread Jon Ribbens
On Tuesday, 6 September 2016 17:05:39 UTC+1, Tim Graham wrote: > > See https://code.djangoproject.com/ticket/4345 for the ticket that > disallowed primary_key/unique on FileField. > I've now opened a new ticket #27188 to suggest reversing this change ;-) > You can write a custom field to get

FileField with UUID filename

2016-09-04 Thread Jon Ribbens
I have a model which basically just represents a file. I want to use a UUID as the filename. I could do the following: def _get_filename(instance, filename): return str(uuid.uuid4()) class File(Model): content = FileField(db_index=True, upload_to=_get_filename)

Re: Steadman

2016-01-06 Thread Jon Atkinson
I've alerted Mark off-list. --Jon On Wed, Jan 6, 2016 at 1:02 PM, Avraham Serour <tovm...@gmail.com> wrote: > virus people, don't click the link > > On Wed, Jan 6, 2016 at 2:29 PM, Steadman <m...@steadman.io> wrote: > >> Please find the attached documen

Re: get all current active connected users

2015-12-09 Thread Jon Ribbens
On Wednesday, 9 December 2015 12:55:22 UTC, Jani Tiainen wrote: > > This is really problematic domain since as you know, Django works on HTTP > request-response cycle. After cycle is finished there is absolutely no way > to know "who is logged on". > > So first you have to determine factors that

Re: How to write Model.get_absolute_url()?

2015-12-08 Thread Jon Ribbens
On Tuesday, 8 December 2015 00:44:02 UTC, knbk wrote: > > It seems a bit weird that that's not automatic. >> > > That's what I thought, so it's automatic in 1.9. > Ah, brilliant. > That still leaves the question of what Model.get_absolute_url() should do, >> given that it has no way to get

Re: How to write Model.get_absolute_url()?

2015-12-07 Thread Jon Ribbens
On Monday, 7 December 2015 23:40:51 UTC, knbk wrote: > Namespaces are a mess, and have been for a while. 1.9 cleans this up a > bit. Some advice for 1.8 to stay in line with the 1.9 changes: > >- Always define an application namespace when using an instance >namespace. >- An app

Re: How to write Model.get_absolute_url()?

2015-12-07 Thread Jon Ribbens
On Monday, 7 December 2015 21:14:45 UTC, Caique Reinhold wrote: > > Well, as this is implemented you have to know your namespaces during > development. But now i see what's your problem. > > I'm not sure, but i don't think it is encouraged to have multiple > instances of the same app in one

Re: How to write Model.get_absolute_url()?

2015-12-07 Thread Jon Ribbens
On Monday, 7 December 2015 20:09:34 UTC, Caique Reinhold wrote: > > You use the app namespace which you defined in the site for each app, not > the app_name. That's what pa xapy meant. > > In the example you gave it would be like: reverse('author-polls:view', > self.id). > But (a) the app

Re: How to write Model.get_absolute_url()?

2015-12-07 Thread Jon Ribbens
On Monday, 7 December 2015 10:24:48 UTC, pa xapy wrote: > > there is two approaches: > you can either create unique names for each url pattern entry like > url(, name='my_app_unique_view_name') > or use namespace and pass it to reverse like >

How to write Model.get_absolute_url()?

2015-12-05 Thread Jon Ribbens
I'm using Django 1.8. If I'm writing an app, and I want to add get_absolute_url() to a model, the question is: what do I put for the first argument to 'reverse'? The documentation at https://docs.djangoproject.com/en/1.8/topics/http/urls/#url-namespaces implies that I need to know two things:

Re: hanging django/postgres idle connections

2015-11-23 Thread Jon Sandness
I'm seeing this same issue in OS X 10.11.1 - interestingly, the hang only occurs when I run migrations through Jenkins. If I manually run the command inside of a VirtualBox session, it works as expected. Jon On Friday, August 1, 2014 at 6:41:53 AM UTC-7, Jani Kajala wrote: > > Haven't

ValueError: Related model 'cms.Placeholder' cannot be resolved

2015-11-22 Thread Jon Ribbens
I changed a field from TextField to PlaceholderField (from Django-CMS) and now I get the above error when running 'migrate'. I can't find a way to fix this, nor can I undo it as there appears to be no way to remove migrations. I am using: Python 3.4.3 Django 1.8.5 Django-CMS 3.1.3 Does

Have mercy please!

2015-06-09 Thread Jon Foster
backwards incompatible changes. I want to spend more time working with Django, but I need to know that my clients can rely on painless and cost effective upgrades. Thanks for reading my complaint, Jon -- You received this message because you are subscribed to the Google Groups "Django

Re: migrate does not store default values in the database

2014-10-24 Thread Jon Dufresne
lt-in there was a bug report about this: <https://code.djangoproject.com/ticket/470>. It might be of some help. It was closed as wontfix. Not sure if the addition of migrations has changed anyone's mind. Cheers, Jon -- You received this message because you are subscribed to the Google Grou

Re: Is there a way to supress blank lines in the HTML?

2014-10-24 Thread Jon Dufresne
Try adding "import re" to the top to import the Python re module. On Fri, Oct 24, 2014 at 8:35 AM, Daniel Grace wrote: > Thanks people for the info. I was looking for a way to beautify the code, > rather than for performance /

Re: Is there a way to supress blank lines in the HTML?

2014-10-24 Thread Jon Dufresne
sue is relevant. Cheers, Jon -- 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-users+unsubscr...@googlegroups.com. To post to this group, send emai

Re: Restricting file access to users who uploaded the file.

2014-10-21 Thread Jon Dufresne
Django Sendfile <https://github.com/johnsensible/django-sendfile>. However, you'll still need to configure the web server end. Cheers, Jon -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rece

entering data directly into a postgreSQL database

2014-10-18 Thread Jon Joseph
rying(10)" from the PostgreSQL COPY command. Any ideas, any more information needed? Thanks, Jon Joseph josco@gmail.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving email

Re: File Storage API: save file to DB model and disk: separate disk path from file name

2014-10-17 Thread Jon Dufresne
access the file. Thanks for the feedback and suggestions. I'll play around a bit and give it a shot. My fear with this approach is third party applications with FileFields will now now handle files differently. Luckily this doesn't affect me at the moment, but may in the future. Cheers, Jon -- You

File Storage API: save file to DB model and disk: separate disk path from file name

2014-10-17 Thread Jon Dufresne
StoredFile model? Is what I'm trying to do achievable? Am I approaching the problem correctly? This design was taken from an existing application, so interoperability is also a goal. Cheers, Jon -- You received this message because you are subscribed to the Google Groups "Django users"

Looking for Django developers in the UK

2014-07-23 Thread Jon Atkinson
, and want a chat, get in touch with me off-list and I'll buy you lunch :-) --Jon -- [image: FARM Digital Logo] *Jon Atkinson* | Technical Director | FARM Digital Limited Studio: 24/26 Lever Street, Manchester, M1 1DZ HQ: Crown House, High Street, Hartley Wintney, Hampshire, RG27 8NW Phone: 01252 494

assertXMLEqual behaviour

2014-04-30 Thread Jon Dunleavy
Hi, I am using django 1.6 but I can't find any information on the bugtracker as to whether this has changed but is this intentional behaviour of assertXMLEqual: # this passes self.assertXMLEqual( "Value", """Value""", ) # this fails self.assertXMLEqual( "Value", """

Nesting custom template tags

2014-03-29 Thread Jon Dufresne
Hi, I am trying to create a custom template tag that generates a repetitive HTML snippet. This tag is an anchor tag "a" with extra classes and styles, plus some logic to apply additional classes and styles. I want the syntax in the template to look something like: {% my_anchor URL %}this is

Re: Model field's verbose_name from database?

2014-02-05 Thread Jon Dufresne
ons For this reason, these fields are configured as a sort of "user setting". The user is in complete control. But, once they are set, they should be used everywhere. Cheers, Jon -- You received this message because you are subscribed to the Google Groups "Django users" gro

Model field's verbose_name from database?

2014-02-04 Thread Jon Dufresne
haps with some lazy loading trickery? I want to do something in the spirit of: first_name = models.CharField(..., verbose_name=lazy_load_name_from_db()) My hope is to eliminate the need to think about what to call this field when displayed to the user. Thanks, Jon -- You received this message because you

Re: Spammed with 'Invalid HTTP_HOST header' messages

2013-12-06 Thread Jon Dufresne
> Can you not add a filter to your logger handler? > http://stackoverflow.com/a/19534738 I will give this a shot. But what I don't understand is that the post claims that this is fixed in newer versions. I am using version 1.6. By "fixed" does he simply mean 500 error is now a 400 error? Or is

Re: Spammed with 'Invalid HTTP_HOST header' messages

2013-12-06 Thread Jon Dufresne
On Fri, Dec 6, 2013 at 7:47 AM, Zach Borboa wrote: > SuspiciousOperation should now return a 400 error [1]. It is true, the response is a 400 Bad Request error, but I still receive emails going to my admins/managers email account. I thought 400 errors shouldn't be mailed

Spammed with 'Invalid HTTP_HOST header' messages

2013-12-05 Thread Jon Dufresne
as an admin to receive an email every time this happens. What is the most straight forward way to prevent these errors from emailing the admins? I want to continue to receive other errors. Thanks, Jon -- You received this message because you are subscribed to the Google Groups "Django users&q

Django Developers wanted, junior and senior. Remote welcome, European timezones.

2013-11-27 Thread Jon Atkinson
( http://www.djangoweek.ly). If this is of interest, you can either apply directly (information is in the links above), or you can email me for more information. I’m also on Freenode as `JonA`. Thanks! --Jon -- You received this message because you are subscribed to the Google Groups "D

Re: Apache environment variables in Django 1.6

2013-11-22 Thread Jon Dufresne
ution I'd be interested to hear about them. I filed a ticket #21486 <https://code.djangoproject.com/ticket/21486>. If you have any useful information to provide, please add it to the ticket. This concern over race conditions might be a good thing to mention. Cheers, Jon -- You received this mess

Re: Apache environment variables in Django 1.6

2013-11-21 Thread Jon Dufresne
On Thu, Nov 21, 2013 at 8:46 AM, Mike Starov wrote: > I encountered same issue in my deployment. Have you found a solution? > Yes I did. I am still not sure if this is a bug or intentional. It appears that in 1.6, settings.py is now imported *before* the first run of the

Apache environment variables in Django 1.6

2013-11-20 Thread Jon Dufresne
Hi, I recently upgraded my Django application from 1.5 to 1.6. This application runs on Apache with mod_wsgi. After upgrading, Django seems unable to access environment variables set by Apache using SetEnv and SetEnvIf. Using Django 1.5 I was able to access this using the following recipe in

Logging warnings inside settings.py

2013-11-01 Thread Jon Dufresne
earlier than that. Thanks, Jon -- 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-users+unsubscr...@googlegroups.com. To post to this group,

ModelMultipleChoiceField ignore invalid choices?

2013-10-07 Thread Jon Dufresne
system * User A submits form and receives error I understand why this should be an error in the general case, but in my case, I want this to silently ignore the invalid choice 3 and continue with choice 1 and 2? Is this possible? Thanks, Jon -- You received this message because you

Advice on deploying multiple Django instances to single Apache server

2013-08-23 Thread Jon Dufresne
approach. As Apache is already running successfully on the server serving PHP an static files. Any advice or good resources on how to accomplish what I am doing? All the documentation seems to be targeted at one server with one Django application. Thanks, Jon -- You received this message because you

Adding custom WHERE conditions to query sets (MySQL user defined functions)

2013-08-20 Thread Jon Dufresne
to prefer lazy query sets instead of lists of models. Thanks for any help. Jon -- 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-user

Re: Importing project URLs without a database

2013-08-01 Thread Jon Dufresne
On Thu, Aug 1, 2013 at 2:38 PM, Phil wrote: > Could you post the entire content of your script? There is no way those 2 > lines (and the necessary "os" import) can cause this error. > > > You are right. I investigated much deeper. Turns out this is what I did. 1. Script

Importing project URLs without a database

2013-08-01 Thread Jon Dufresne
Hi, I am trying to write a script that outputs information about all URLs in the project. The script should be able to do this without having a database populated or even created. Right now the script gets to the following line: os.environ.setdefault("DJANGO_SETTINGS_MODULE",

Forms with fields created dynamically client side

2013-07-26 Thread Jon Dufresne
Hi, I am creating a form for the user to add, edit, and remove all tags in the database. The tag models are handled by taggit. The form will look like like _Tag1_[del] _Tag2_[del] __<--- User enters next tag here [add tag] Clicking add tag will fire some javascript to add a new

Re: Every view requires authentication

2013-07-18 Thread Jon Dufresne
On Thu, Jul 18, 2013 at 1:36 AM, Tom Evans <tevans...@googlemail.com> wrote: > On Thu, Jul 18, 2013 at 1:11 AM, Jon Dufresne <jon.dufre...@gmail.com> > wrote: > > Oh, I see what you're saying. The login_required does not need to be > added > > explicitl

Re: Every view requires authentication

2013-07-17 Thread Jon Dufresne
On Wed, Jul 17, 2013 at 4:24 PM, Arnold Krille wrote: > Still interesting that you need authentication while not needing any > authorization... Oh, I see what you're saying. The login_required does not need to be added explicitly, because it is added implicitly by the

Re: Every view requires authentication

2013-07-17 Thread Jon Dufresne
On Wed, Jul 17, 2013 at 1:25 PM, Arnold Krille <arn...@arnoldarts.de> wrote: > On Wed, 17 Jul 2013 11:22:36 -0700 Jon Dufresne > <jon.dufre...@gmail.com> wrote:The standard-way depende on your views: > - If its function-based views, use the @login_required-decorator. >

Every view requires authentication

2013-07-17 Thread Jon Dufresne
My application requires an authenticated user for every view (with very few exceptions). Is there a standard correct way to handle this or should I roll my own middleware? I'm probably not the first have this requirement. -- You received this message because you are subscribed to the Google

Re: or-ing to QuerySets turns INNER into LEFT OUTER joins?

2013-07-16 Thread Jon Dufresne
I too would be interested to know if there is a solution. A LEFT OUTER JOIN can really hurt performance when an INNER JOIN are more appropriate,. On Mon, Jul 15, 2013 at 8:41 AM, Carsten Fuchs wrote: > Hi all, > > we have two queries/QuerySets Q_a and Q_b, each of which

Re: Choosing a JS framework to go together with Django

2013-07-14 Thread Jon
post was to NOT do two different views; one for search bots and one for browsers. I agree that providing a REST interface is the "right" way to provide data for both browsers and mobile apps. To that end, the project I was suppose to work on, used tastypie. // Jon On 14/07/2013

Re: Is there any small and easy website example available for Django?

2012-10-09 Thread Jon Crowell
://github.com/jacobian/djangobook.com Jon On Tue, Oct 9, 2012 at 9:28 AM, lacrymol...@gmail.com <lacrymol...@gmail.com> wrote: > > First of all, djangobook.com is outdated, and not recommended, at least last > time i checked it. > > Secondly, for what seems to be your need,

Re: Is there any small and easy website example available for Django?

2012-10-09 Thread Jon Crowell
-not-available-and-_imaging-c-module-error-in-python-pil-errors-all-for-pinry/) Jon On Tue, Oct 9, 2012 at 1:46 AM, Sarbjit singh <sarbjit1...@gmail.com> wrote: > I am very new to Django and I just finished first seven chapters from > Djangobook.com. I am wondering how can we implement a

Re: Cant Import mysite.urls

2012-09-13 Thread Jon Blake
well "out of the box" after a good night's sleep. Now to get serving the admin files to work... On Wednesday, September 12, 2012 9:37:56 AM UTC+10, patrick wrote: > > On Tuesday, September 11, 2012 1:44:22 AM UTC-3, Jon Blake wrote: >> >> Thanks, Patrick. My reference t

Re: How to Set Up for Apace and Mod_wsgi

2012-09-12 Thread Jon Blake
wsgi_module (shared), and syntax OK. URL http://localhost/ shows the expected Apache test page. I have added directive > WSGIScriptAlias / /home/jon/djangodemo/mysite/mysite/wsgi.py to > /etc/httpd/conf/httpd.conf > as per one example of setting up a production site server I h

Re: Possible spam from mailing list? ("China Mobile")

2012-09-12 Thread Jon Blake
I've had a coup[le of these, now. On Tuesday, September 11, 2012 5:27:59 AM UTC+10, Kurtis wrote: > > I just received a very unusual e-mail that included a recent post's > subject. The post in question was: "Re: form doesn't validate when trying > to upload file". It was sent directly to my

Re: Cant Import mysite.urls

2012-09-10 Thread Jon Blake
2012 8:29:12 PM UTC-3, Jon Blake wrote: >> >> Working through getting Django to work with Apache, mod_wsgi and Oracle >> database back end. When I enter my site URL, I get a "ImportError at /" >> page, with an exception value of "No module named mysite.urls&

Cant Import mysite.urls

2012-09-10 Thread Jon Blake
between mysite.urls and utils.py, and how does Django import mysite.urls if it does not exist? TIA, Jon -- 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

Re: Can't Find libclntsh.so.11.1 With Oracle Backend

2012-09-10 Thread Jon Blake
ail.com >wrote: > >> On Sunday, September 9, 2012 10:41:00 PM UTC-6, Jon Blake wrote: >>> >>> It looks like I have to tell my app what my path to libclntsh.so.11.1 >>> is. I have added: >>> >>> os.environ['LD_LIBRARY_PATH'] = '/oracl

Re: Django Tutorial

2012-09-10 Thread Jon Blake
privileges to create objects in your account's schema? HTH, Jon On Sunday, September 9, 2012 11:02:14 AM UTC+10, David Perez wrote: > > Hi, > > I am new to Django, I am actually starting its tutorial. On part 2 it > enables the admin site, but I can't log in to it. The following er

Re: Can't Find libclntsh.so.11.1 With Oracle Backend

2012-09-09 Thread Jon Blake
Just an edit to my original post: ... but this does *not* resolve my problem. Sorry for any confusion. On Monday, September 10, 2012 2:41:00 PM UTC+10, Jon Blake wrote: > > I have worked through the Django tutorial parts 1 and 2 with an Oracle > back end using the development server. E

Can't Find libclntsh.so.11.1 With Oracle Backend

2012-09-09 Thread Jon Blake
I have worked through the Django tutorial parts 1 and 2 with an Oracle back end using the development server. Everything worked fine. I now want to use a real server - Apache + mod_wsgi. I've got to the point where I get an "Improperly Configured at /" page, which shows the following:

Re: How to Set Up for Apace and Mod_wsgi

2012-09-07 Thread Jon and Chiarina Blake
for this purpose, the mere presence of the module in the appropriate place turns it on. If it doesn't appear to be turning on, I would suggest googling how to turn on mod_php as it should be the same type of thing I would assume. Mike On Sep 3, 2012, at 2:36 AM, Jon Blake <jc.bla...@gmail.

Re: How to Set Up for Apace and Mod_wsgi

2012-09-03 Thread Jon Blake
Thanks, Mike. I'll get back to this next Friday. Assistance much appreciated. Jon On Monday, September 3, 2012 4:47:16 PM UTC+10, dalupus wrote: > > Basically the entry in the httpd.conf file points to the dejango.wsgi > file. Instead of apache/django.wsgi, point it to the location

Re: How to Set Up for Apace and Mod_wsgi

2012-09-03 Thread Jon Blake
to installing Apache2, along with libapache2-mod-wsgi. Is libapache2-mod-wsgi something different from the mod_wsgi 3.2 package I have already installed? TIA, Jon On Monday, September 3, 2012 3:06:19 PM UTC+10, dalupus wrote: > > > http://eddychan.com/post/18484749431/minimum-viable-ops-

How to Set Up for Apace and Mod_wsgi

2012-09-02 Thread Jon Blake
I've worked through parts 1 and 2 of the tutorial using the development server, and I have reviewed the doco on how to use Django with Apache and mod_wsgi. I want to trial a production environment on my Fedora 14 dev box, but the provided instructions assume some familiarity with configuring

Re: Syncdb Error With Oracle Database - IntegrityError Exception

2012-08-31 Thread Jon Blake
Thanks, Ian, I did miss that. Bookmarked for future reference. On Saturday, September 1, 2012 3:16:38 PM UTC+10, Ian wrote: > > On Fri, Aug 31, 2012 at 10:03 PM, Jon Blake <jc.b...@gmail.com> > wrote: > > Querying column timestamp of view user_objects for tables, sequen

Re: Syncdb Error With Oracle Database - IntegrityError Exception

2012-08-31 Thread Jon Blake
. I'm on my way with Django - looking like a great framework! Jon On Saturday, September 1, 2012 2:03:42 PM UTC+10, Jon Blake wrote: > > Thanks, Ian and Amyth, for your responses. > > I encountered the CREATE TRIGGER privilege issue early in my trials with > Django with the Oracl

Re: Syncdb Error With Oracle Database - IntegrityError Exception

2012-08-31 Thread Jon Blake
hat would assist... Once again, many thanks Jon On Saturday, September 1, 2012 1:23:28 AM UTC+10, Ian wrote: > > On Friday, August 31, 2012 12:10:54 AM UTC-6, Amyth wrote: >> >> Hey Jon, >> >> I guess this is because of a bug in django. Django already has a open

Re: Instaling django

2012-08-30 Thread Jon Blake
>>> print django.get_version() 1.4.1 HTH, Jon On Thursday, August 30, 2012 4:28:40 PM UTC+10, Balle wrote: > > Hi, I have been trying to download django with every options but when i > run pyhton on the terminal and then asks to import django. It always says > no mudul

Syncdb Error With Oracle Database - IntegrityError Exception

2012-08-30 Thread Jon Blake
Just discovered Django and trying out the Django 1.4 tutorial with an Oracle backend database. In my database, I have created user django with privs create session, create table, create sequence, create trigger. The DATABASES dictionary in settings has been edited to set the default settings

Checkbox checking

2012-08-01 Thread Jon Underwood
. In the admin the checkboxes aren't required to be checked. When displaying the form in a template I can set required="True" as follows: This works in most browsers, though not Safari for some reason. Is there a better method? I've messed around with this for ages! Thank you in adv

Re: Prioritise 0.1 released

2012-07-14 Thread Jon Black
Thanks for the kind words. I skipped unit tests to make learning django simpler. I fully intend to add unit tests in future updates. Thanks for the reminder, though :) On 07/14/2012 05:31 PM, George Silva wrote: > HI Jon, > > Congratulations of your first public Django project. It s

Prioritise 0.1 released

2012-07-14 Thread Jon Black
with more details, including the ubiquitous screenshot, here: http://jonblack.org/2012/07/14/prioritise-0-1-released/ If you just want the code to try it out (yay!), go here: https://github.com/jonblack/prioritise Thanks! -- Jon Black www.jonblack.org signature.asc Description: OpenPGP digital

Re: Release considerations

2012-07-11 Thread Jon Black
Thanks Reinout, that's a great checklist - much more than I thought of. -- Jon Black www.jonblack.org On Tue, Jul 10, 2012, at 22:15, Reinout van Rees wrote: > On 10-07-12 08:24, Jon Black wrote: > > I've been working on a task management project and am at a point where > > I'm h

Release considerations

2012-07-10 Thread Jon Black
available to both make life easier for the users/keep private information out of the repository? -- Jon Black www.jonblack.org signature.asc Description: OpenPGP digital signature

Re: insert html into a form from Django code (not template)

2012-07-05 Thread Jon Black
in the template? I know this is in the template, but you can add the text you want still: {% for field in form %} Some stuff I want here that form.as_p won't do for me {{ field.errors }} {{ field.label_tag }}: {{ field }} {% endfor %} -- Jon Black www.jonblack.org On Thu, Jul 5, 2012, at 03:20

Re: insert html into a form from Django code (not template)

2012-07-05 Thread Jon Black
This (https://docs.djangoproject.com/en/dev/topics/forms/?from=olddocs #customizing-the-form-template) and more generally the entire page explains how to work with forms. -- Jon Black www.jonblack.org On Thu, Jul 5, 2012, at 02:57, angelika wrote: Is there a way to insert arbitrary html

Re: DetailView - invalid literal for int() with base 10:

2012-07-05 Thread Jon Black
Hit send too soon then. My guess is that your kwargs being passed to filter() contains some suspect things. -- Jon Black www.jonblack.org On Thu, Jul 5, 2012, at 11:27, Jon Black wrote: That doesn't help so much as there's no context information. Nice to see the 'sysadmin' bit which wasn't

Re: DetailView - invalid literal for int() with base 10:

2012-07-05 Thread Jon Black
That doesn't help so much as there's no context information. Nice to see the 'sysadmin' bit which wasn't in your original post. Google throws up a lot of things for that: http://www.google.nl/search?q=invalid+literal+for+int%28%29+with+ base+10%3A+%27sysadmin -- Jon Black www.jonblack.org

Re: DetailView - invalid literal for int() with base 10:

2012-07-05 Thread Jon Black
, use the Meta class. -- Jon Black www.jonblack.org On Thu, Jul 5, 2012, at 02:07, Barry Morrison wrote: I've been beating my head against this all night and now into the morning...I have NO idea what I'm doing wrong and Google and Stack Overflow haven't been as helpful as I had hoped

Re:

2012-07-04 Thread Jon Black
Do you mean github? If so, see the github documentation. Do you mean creating a git repository? If so, see the git documentation. -- Jon Black www.jonblack.org On Wed, Jul 4, 2012, at 02:25, Bharati Sharma wrote: I want to upload my project on the git ...kindly help me please

Re: error : need more than 1 value to unpack

2012-07-04 Thread Jon Black
You're also returning mimetype="application/json" outside of the request.is_ajax check. I doubt you want that. On Wed, Jul 4, 2012, at 01:20, rafiee.nima wrote: Oh I find out my mistake :D On Wednesday, July 4, 2012 12:38:11 PM UTC+4:30, rafiee.nima wrote: Hi I got below error from my view

Re: Django Developer, Washington, D.C.

2012-07-03 Thread Jon Black
And also on http://djangogigs.com/ -- Jon Black www.jonblack.org On Tue, Jul 3, 2012, at 11:03, Itamar Reis Peixoto wrote: > On Tue, Jul 3, 2012 at 10:43 AM, Andrew Moore <propensitygr...@gmail.com> > wrote: > > Hello group. > > > > National Geographi

Re: Filter FieldError

2012-07-03 Thread Jon Black
I think you need a double underscore: fieldname__startswith On Tue, Jul 3, 2012, at 02:47, Saroja Parameswaran wrote: While using filters on Django objects, I get the below error message. Except equals, all the other options like _startswith, _exact, _iexact shows the same error. I am using

Re: to add counter in the project

2012-07-03 Thread Jon Black
. That's one option. -- Jon Black www.jonblack.org On Tue, Jul 3, 2012, at 01:08, Bharati Sharma wrote: thanks Jon... actually I am making project of faculty management system of my college.I have added some of the faculty member's resume in the database. i want a counter in my project that should

Re: Can't figure out how to obtain organized list of my friends

2012-07-03 Thread Jon Black
= models.ManyToManyField("self") You could adapt this to your UserProfile I suppose. -- Jon Black www.jonblack.org On Tue, Jul 3, 2012, at 12:57, kenneth gonsalves wrote: > On Mon, 2012-07-02 at 20:31 -0700, Keith D. Cardin wrote: > > I'm trying to create a "my friends" pag

Re: to add counter in the project

2012-07-03 Thread Jon Black
require filtering later (e.g. number of counts each month, week, day). -- Jon Black www.jonblack.org On Mon, Jul 2, 2012, at 23:25, Bharati Sharma wrote: I want to add counter in my project so that the value in the table increases as the data is put in the database. Can anyone help me plz

Re: Same virtual-env for all django projects

2012-07-03 Thread Jon Black
being a bit extreme, but it was a thought. Only you can judge your needs. -- Jon Black www.jonblack.org On Mon, Jul 2, 2012, at 16:19, Smaran Harihar wrote: Thanks Musicman On Mon, Jul 2, 2012 at 4:17 PM, Lachlan Musicman <[1]data...@gmail.com> wrote: On Tue, Jul 3, 2012 at 10:52 AM,

Re: jquery, json and forms

2012-07-02 Thread Jon Black
One approach is to pass json/html data in the response after saving and use jQuery to update the page. On 07/02/2012 05:12 PM, David wrote: > Hello > > I have a form that saves, and displays errors correctly when using > javascript and without. > > However, when my form saves I need to refresh

Re: advantages and disadvantages of Raw sql queries in django

2012-06-30 Thread Jon Black
Also, using ORM means you're less likely to be tied to a specific database...or in other words, your hand-crafted SQL is likely to be specific to certain databases. On 06/30/2012 08:33 AM, Mike Dewhirst wrote: > I firmly believe in using the ORM for everything until i am forced to > use

  1   2   3   4   >