Re: Can't Send Password With Test Client

2008-07-21 Thread James
It appears that the password value isn't printed for security reasons. The problem remains that the form will not validate. James wrote: > I've confirmed that while I can send other fields via the Django test > client, I can't send password fields. > > So for

Django not deleting files still referenced by ImageField

2009-03-02 Thread James
So I added a custom storage class to an ImageField which overwrites files with the same name. I noticed while testing that I can add many records all referencing the same single image, which gets overwritten with each new record created. What's strange/interesting is... the image file doesn't ge

Re: Coding for arbitrary additional fields of a certain type

2009-06-28 Thread James
On Jun 27, 8:56 pm, lzantal wrote: > Hi, > > On Jun 27, 2009, at 10:55 AM, "Daniele Procida" > > >  > wrote: > > > I am wondering what sort of coding/storage approach to take to manage > > contact details in a more sophisticated way. > > > For example, one person might need: > > > Phone (London

Re: Is IP address caching built into the Django Framework?

2009-06-29 Thread James
On Jun 29, 8:13 am, Vladimir Shulyak wrote: > > You can't rely on just the IP. If you do then you will have problems > > where large numbers of people sit behind a single IP, as will be case > > where corporate firewall is used, or where proxies or other gateway or > > NAT solution are used by IS

Extending AdminSite

2009-07-23 Thread James
urrently running. Is this correct? If the modification should be done in templates, let me know; I do think admin.py is the appropriate place for it, but I'm new to the community. Thank you, James --~--~-~--~~~---~--~~ You received this message because you are

Re: redirecting after login

2009-08-01 Thread James
You can access the page that they were previously on using HttpRequest.META['HTTP_REFERER']. You'll probably need to persist it in a session so you still have access to it after they submit their login credentials (otherwise HTTP_REFERER would be the login page). I'm not sure if HTTP_REFERER can

Open Position: Software/System Engineer....Django...

2009-09-08 Thread James
appreciate the guidance. Thanks James --~--~-~--~~~---~--~~ 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, sen

Re: Open Position: Software/System Engineer....Django...

2009-09-09 Thread James
Thanks, I will post there. On Sep 8, 4:41 pm, Jim McGaw wrote: > There is a site for posting Django jobs: > > http://djangogigs.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

UserProfile / admin.site.unregister / "'PropertiedClass' object is not iterable" Error

2009-04-08 Thread James
r(User) #class UserProfileInline(admin.StackedInline): # model = UserProfile #class UserProfileAdmin(UserAdmin): # inlines = [UserProfileInline] #admin.site.register(User, UserAdmin) __END__ ... any ideas? Many Thanks, James --~--~-~--~~~---~--~~ You received this message

how to organize favorites in template?

2009-04-16 Thread James
... should I be adding a property to each video to mark it as a favorite? I've tried this: for video in videos: video.favorite = True but that property (or attribute or whatever it's called) doesn't show up in my template as tr

Re: get value in session when concurrency request

2009-04-17 Thread James
I think (in v 1.0) you can call session_store.save() -- I'm guessing that it will save immediately, but I'm not sure: http://docs.djangoproject.com/en/dev/topics/http/sessions/?from=olddocs#using-sessions-out-of-views On Apr 16, 10:06 pm, leopay wrote: > at first session["a"] is oldvalue, > requ

Display dashes in the admin site combobox

2009-06-04 Thread james
e. The vat_code have the right value in the database. There is no problem when I change from DecimalField to CharField see the line in comment. Any idea what could be the problem ? Kind Regards James --~--~-~--~~~---~--~~ You received this message because you are s

An ORM request returns the same object twice?

2009-06-07 Thread James
t;> p2.addTag('blah') >>> Tag.objects.all() [, ] >>> Tag.objects.filter(page__Space=s) [, , ] Why is tag 'blah' repeated twice in that last query? I assumed that the results from a query set would be unique - am I wrong? Are there any other instances where y

Re: An ORM request returns the same object twice?

2009-06-07 Thread James
Ah, I somehow missed distinct() when reading the docs. Sorry, and thanks for your help. On Jun 7, 2:20 pm, Karen Tracey wrote: > On Sun, Jun 7, 2009 at 8:47 AM, James wrote: > > > So the models I am using are at > > >http://github.com/jarofgreen/TaggedWiki/blob/e45

Re: getting the latest story is too slow

2009-06-12 Thread James
I would explore some database indexes. Is that publish date column indexed in any way? I've seen MySQL batch scripts drop from 30 mins plus to a minute or two with the right index, it's worth looking into. James --~--~-~--~~~---~--~~ You received th

Open source project looking for developer

2010-06-01 Thread James
Hi, http://www.myjobseek.net/ is a tool for job seekers to organise their job hunt, storing details of jobs applied for and applications, making it easy to reuse covering letters and so on. However, as I only develop it when I' -- You received this message because you are subscribed to the Googl

Re: Open source project looking for developer

2010-06-01 Thread James
is off-topic (& for my stupidity in posting twice!) James -- 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-

Re: about file uploading

2010-11-01 Thread James
WebDav will not work for you? -james On Mon, Nov 1, 2010 at 1:37 PM, Lic. José M. Rodriguez Bacallao wrote: > yes, I saw that page but this is a complete application, I need > someting with source code for mimifiying in django > > On Mon, Nov 1, 2010 at 1:35 PM, Cal Leeming [Simplici

Re: about file uploading

2010-11-01 Thread James
You can use webdav to help accomplish that goal. See: http://stackoverflow.com/questions/492307/uploading-big-files-over-http/1499819#1499819 (from the link Cal provided) -james On Mon, Nov 1, 2010 at 2:19 PM, Lic. José M. Rodriguez Bacallao wrote: > with webdav can I uploading a f

Re: Repost Admin Site Without Graphics

2010-11-02 Thread James
So your admin media (js, css, images, etc) isn't working? Try two things: 1. Open the source of some admin page. Look at some image, css, or js object. Find the path where it is pointing. Does this path makes sense? (Have you put it in the settings.py file?) 2. Check your site settings. If you a

Re: How create a simple "brochure" website in django?

2010-11-04 Thread James
there is a really simplecms where I can work on without > too much problems? > Yes, there is. You should take a look at "Practical Django Projects" (be sure to get the 2nd edition) by James Bennett. In the book he creates a simple-cms with a tinymce editor. He has the source code pub

Automatically assume "models." prefix in models.py

2010-11-13 Thread James
other things I realized that not everything I will write will have the "models." prefix, but I think _most_ of what I write in models.py will have it. So... I'm a being too lazy, or perhaps just stupid? Thanks, -james -- You received this message because you are subscribed to t

Re: Automatically assume "models." prefix in models.py

2010-11-15 Thread James
On Mon, Nov 15, 2010 at 7:48 AM, bruno desthuilliers wrote: > On Nov 14, 8:20 am, James wrote: >> Forgive a django newbie... >> >> Maybe I'm the laziest person in the world, but sometimes I get tired >> of typing "models.WhatEver" for every single m

Did you ever get this issue resolved?

2010-03-19 Thread James
Hi, I have come across the same problem as you describe. Did you resolve the issue? If so, what was wrong? Thanks, James -- 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...@googlegrou

Re: Did you ever get this issue resolved?

2010-03-19 Thread James
Hi Tom, Sorry, that was my first post on Google Groups. It seems I created a new thread instead of replying to: http://groups.google.com/group/django-users/browse_thread/thread/6dd8777e19f06de8/ I have since resolved my issue but don't think Jonathan has. Thanks, James --- On Mar 19,

Arrays

2010-03-22 Thread James
Hi, I am struggling to get a piece of code working. I've looked at it too much and now can't see what im doing wrong. Anyone have any ideas? The error is as follows: Type Error string indices must be integers - (if ids['m'['manufacturer__id']] is not m['manufacturer__id']: ) Code: tmp_manufactu

Re: Arrays

2010-03-22 Thread James
Hi, Thanks for this, it's helped me a lot. I will see if I can muddle through the next part. My my had just gone completely blank with this. Going to get some fresh air first. Thanks again! --- On 22 Mar, 11:38, Daniel Roseman wrote: > On Mar 22, 11:19 am, James wrote: > > >

Selected option in bounded ModelChoiceField

2008-03-02 Thread james
I have created a bounded ModelChoiceField like this : Model: -- class Project(models.Model): name = models.CharField() class Staff(models.Model): name = models.CharField() project = models.ForeignKey(Project) Forms: -- class StaffForm(newforms.Form): name = forms

Just learning the ropes with Django and authentication

2008-03-31 Thread James
I am trying to figure out if there is a way to used the Django built in login page (the one used to get into the administration pages) and link that to my own site. I am also just beginning in the website business as well. Does anyone have any suggestions, or anyway that I can better understand

Re: Just learning the ropes with Django and authentication

2008-04-02 Thread James
orm), and under django/contrib/admin/templates/admin/ > login.html is the form itself. > > I'd also suggest looking at django/contrib/auth/ for futher insight as > to what's going on there. > > Hope this helps. > > On Mar 31, 11:26 pm, James <[EMAIL PROTECTED]&g

Setting up fixture on model with ForeignKey

2007-04-20 Thread James
as well as a peek at the database itself shows this not to be the case. The error instead seems to refer to the model itself, which has the declaration: "datasource = models.ForeignKey(DataSource)" I tried changing the fixture line to "datasource": "1", but this re

Re: Setting up fixture on model with ForeignKey [IGNORE]

2007-04-20 Thread James
Never mind. Forgot to reference the fixture in my test. jh On Apr 20, 10:28 am, James <[EMAIL PROTECTED]> wrote: > Hi, > > I'm having some trouble setting up a fixture for a model (Dataset) > that has a many-to-one relation with another model, DataSource. My > init

newforms, form_for_model, and FilePathField

2007-05-04 Thread James
orm framework? If yes, is that how it will eventually work with newforms? Thanks, James --~--~-~--~~~---~--~~ 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

***great chance to earn money!***

2007-05-15 Thread James
My name is James Cai from China.And I would like to say I've find some good ways to make business ( trade related ).If you are interested,please offer your email address,so that I can send a plan of it to you.Hope you will be my partner!! My E-mail:[EMAIL PROT

Re: is possible to only select the specified fields?

2007-09-18 Thread James
template -- quite unlike a regular QuerySet. -james On Aug 30, 5:15 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 8/29/07, Diego pylorca <[EMAIL PROTECTED]> wrote: > > > ok, but this not return aquerySet, return a dictionary :S > > Read the do

Re: is possible to only select the specified fields?

2007-09-18 Thread James
st a flat dictionary, rather than a representation of the model). cheers, james On Sep 18, 5:22 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 9/19/07, James <[EMAIL PROTECTED]> wrote: > > > > > You matter-of-factly suggest that a ValuesQuerySet

Re: Out of range value

2007-11-26 Thread James
it in a query. MySQL documentation page here: http://dev.mysql.com/doc/refman/5.0/en/numeric-types.html If anything about my explanation isn't clear, I can try to clarify for you. --James Nader wrote: > Hallo, > > I have a model in which one field value can be a large integer value

UK DJANGO/Python Developer positions (Contract/Permanent)

2007-12-13 Thread James
please give me (James) a ring on 01865 339395 (I don't check my googlemail very often) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Making translations appear without server restart?

2007-12-19 Thread James
ngo's i18n machinery pick up new translations as soon as they are generated? Thanks, James --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

Re: Making translations appear without server restart?

2007-12-19 Thread James
ws it to still be populated, which prevents the translation() method from reloading the message files from disk. James --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Making translations appear without server restart?

2007-12-19 Thread James
tanding Python's 'global' declaration imperfectly, but from the print statements I have littered about in both my code and Django's, the _translations object I'm referring to in my view code doesn't seem to be the same object being referred to in trans_real.py. sti

Re: Making translations appear without server restart?

2007-12-20 Thread James
ons = {} > from datetime import datetime > globals _translations_loadtime > _translations_loadtime = datetime.now() > translation.activate() > Tried the above, but _translations is still getting repopulated somewhere and won't pick up the new translations. > > James Bennett has a nic

Feeds as a web service

2006-08-16 Thread James
Anyone thought of using Django's feeds to supply XML in a sort of simple, read-only, web service kinda way? :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

order_by()

2006-08-18 Thread James
Hi, according to the docs, I should be able order by a field in another table like below, but for some reason I can't get it to work. I'm new to django. Thought I'd give it a shot as I've primarily been using Ruby on Rails. views.py: products = Product.objects.order_by('products_brand.name', 'p

Re: order_by()

2006-08-18 Thread James
Just for the record, see: http://code.djangoproject.com/ticket/2076 --~--~-~--~~~---~--~~ 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 unsubs

Re: Django + fastCGI + bluehost

2006-04-07 Thread James
Carlos, I have django running on my bluehost account with fcgi. The best notes on how to get things running I have found are here: http://wiki.dreamhost.com/index.php/Django Bluehost is setup pretty much the same as dreamhost. I recommend Bluehost for the price and support. James Carlos

Re: Static files is not loading while deploying the project to AWS ec2

2022-11-07 Thread James
It sounds like nginx doesn't know where your static files are being served from. If you don't want to bother with NGINX you can use Whitenoise. Django doesn't serve staticfiles in production; something that isn't overly apparent. You still need something like apache or nginx or whitenoise to se

Re: Django multistep form

2022-11-07 Thread James
Hi, Can you also link the relevant urls.py please? Thanks! On Monday, November 7, 2022 at 2:58:01 AM UTC-7 uobod...@gmail.com wrote: > I have a multi-step form that is 3 steps but it has 4 forms. In the first > form, the user has to choose from two choices. The user’s first form > choices wi

Re: HOW TO GET DJANGO MODELS FIELD VALUE FROM MODEL OBJECT IN TEMPLATE TAGS-DJANGO

2022-11-07 Thread James
Hi; There's a method you're supposed to override in your views (inherit from Views) to do what you want, it's called "get_context_data". This method will pump whatever data you send to it into your template tags. On Sunday, November 6, 2022 at 4:15:35 AM UTC-7 rani...@gmail.com wrote: > my mo

Can't Load Django Dev Sever

2022-11-10 Thread James
Hello, I can't connect to my django web server and it's all my fault. I turned on SECURE_HSTS_SECONDS to 60 by accident in development, in another project, a few days ago. Now I can not load http://127.0.0.1:8000 on FireFox and I don't know how to fix it. And yes runserver is set to that port/

Re: Can't Load Django Dev Sever

2022-11-11 Thread James
Thanks so much! I thought I was doing something wrong when I deleted the cache and cookies and nothing happened. Just needed to restart my computer after clearing the cache/cookies; may have been a firefox bug! Thanks again for you help! Best Regards, -James Logan On Friday, November 11

Re: Apps aren't loaded yet exception when trying to run migrate Django oscar

2022-11-12 Thread James
I fixed something similar once by having the model that was causing the problem be set to abstract in its class meta. O you need to "makemigrations user" if you've opened up the usermodel and changed a lot of stuff (also had that problem before) Hope these simple solutions work! On Friday,

Favicon Error While Using Inline Favicon

2022-11-13 Thread James
change color based on a media query. Best Regards, -James Logan -- 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

Re: Custom user model password is not hashed

2023-01-26 Thread James
Yup, 100% correct. Glad to hear you fixed it. Custom user models that inherit from the abstractbaseuser class can be a little tricky at first. On Friday, November 13, 2015 at 5:41:09 AM UTC-7 benjamin...@gmail.com wrote: > The problem was, when creating a custom user, one has to define a custom

Re: using forloop.counter to access data

2012-03-21 Thread James
On Wednesday, March 21, 2012 8:47:23 AM UTC-4, larry@gmail.com wrote: > > This is probably a stupid newbie question > > I want to access a column of data in a row using forloop.counter, but > I cannot get it to work. > > In my test code, if I display {{ forloop.counter }} I get 2 > If I

Re: using forloop.counter to access data

2012-03-21 Thread James
On Wednesday, March 21, 2012 10:41:08 AM UTC-4, larry@gmail.com wrote: > > On Wed, Mar 21, 2012 at 7:53 AM, James <> wrote: > > > > > > On Wednesday, March 21, 2012 8:47:23 AM UTC-4, Larry@gmail.comwrote: > >> > >> This is probably a stupid

Re: Bus Error: 10 (Intro Tutorial)

2012-04-21 Thread James
I just started receiving the same error "Bus error: 10". I made a small code change and it suddenly appeared. I've reverted but that doesn't seem to matter. Very odd behavior. I'll continue debugging. My settings: Python 2.7.1 OS:X Lion 10.7.3 Django 1.4.0 James Leard

Re: Bus Error: 10 (Intro Tutorial)

2012-04-23 Thread James
I found the problem. I had overridden __getattr__ and returned self.value which did not yet exist on the object. This caused a maximum recursion depth RuntimeError. I'm still not sure why this became "Bus error: 10", however. James Leard On Apr 23, 1:31 pm, Nikolas Stevenson-Mol

Re: PyPm / Django 1.4?

2012-06-05 Thread James
I use Postgres for this. You will need to install visual studios 2008. Not sure why you said that is an issue. I've never had a problem on several installations. However, pscyopg2 has binaries, that is what I use. >From there you can just virtualnv / pip. -- You received this message because

Re: Handling millions of rows + large bulk processing (now 700+ mil rows)

2012-07-01 Thread James
On Saturday, June 30, 2012 11:10:27 AM UTC-4, Cal Leeming [Simplicity Media Ltd] wrote: > > Hi all, > > As some of you know, I did a live webcast last year (July 2011) on our LLG > project, which explained how we overcome some of the problems associated > with large data processing. > > After

Caching Options

2012-08-22 Thread James
Right now, I'm loading up some data VIA the orm. The nature of the data is fairly complex, somewhere around 10-12 tables are touched per insert and about twice that number referencing static helper tables. For production and day to day use, I've been using django-cache-machine, but I've also be

ModelChoiceFields and verbose names

2011-11-22 Thread James
Hello all: This is my first question posted to this group! I am also a noob, so please be gentle. So, my issue is, I have a ModelForm, which looks like this: class UAssumptionsForm(ModelForm): primary_le = forms.ModelChoiceField(queryset=models.Mortality.objects.none()) secondary_le = fo

Re: Since Django has its own database schema, can we still use sqlalchemy instead?

2012-01-08 Thread James
On Jan 8, 8:43 am, Venkatraman S wrote: > On Sun, Jan 8, 2012 at 9:49 AM, Chen Xu wrote: > > > Since Django has its own database schema, can we still use sqlalchemy > > instead? > > Just to correct the nomeclature : Django has an ORM, and *NOT* a database > schema. An application has its own sc

Groups in Forms

2012-01-20 Thread James
I have a Jquery Notebook that has common options on one tab and more advanced options on another tab. The model referencing this data has both tabs of data and a description field as well. Initially, I broke out the form manually, but I decided that this would be a major pain to write {{ formfiel

Re: Django Form - This field is required.What am I missing.

2012-01-22 Thread James
On Jan 22, 5:42 am, Johan wrote: > Hi I have a form that has a required email field. This due to the fact > that the model requires an email. However, I don't display the email > field on the form. So when the post gets back into my view the email > field is empty. I then thought I would do the

Python problem

2013-03-21 Thread James
Hey there, Did first Django app and everything worked find, however my computer crashed and after restoring it each time I try to execute any .py file in command prompt it says syntax error or that the module doesnt exist... Would you know any reasons for this? Python is still installed and ev

Re: Python problem

2013-03-23 Thread James
haha sorry for got to post, windows 7 running on activepython 2.7.2.5 (path is under python27) Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\James>python ActivePython 2.7.2.5 (ActiveState Software Inc.) based on Python 2.

Cache witin a single transaction / session ?

2013-05-24 Thread James
Use the 'with' template tag. That's what it is for. https://docs.djangoproject.com/en/dev/ref/templates/builtins/#with Also you should probably use |pluralize filter to add pluralization. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsu

Self-Referential System or Tree?

2013-09-05 Thread James
ond the "Basic Usage" in its documentation someone could point me to? Thanks! James C -- 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 djang

Re: Self-Referential System or Tree?

2013-09-05 Thread James
ew? That's the question I'm having trouble answering. James C On Thursday, September 5, 2013 10:43:14 AM UTC-5, Javier Guerra wrote: > > On Thu, Sep 5, 2013 at 10:22 AM, James > > wrote: > > I started writing a new model for a client's website. The easiest >

Custom fields and widgets in a ModelForm

2011-04-22 Thread James
n/1.3/topics/forms/modelforms/#overriding-the-default-field-types-or-widgets suggests I should just do field_name = CustomFormField() on my ModelForm, but when it comes to full_clean(), I don't see my custom form field being used in ModelForm.fields... Any suggestions much appreciated. Tha

User Profile and Form initial values

2011-04-26 Thread James
the initial data doesn't appear, even if I make it explicit in __init__ (e.g. self.fields['field'].initial = 'test'). I just get a blank field. I've pared the following code down to the very basics and it still doesn't work. Is there something missing? Or do I have s

Re: User Profile and Form initial values

2011-04-26 Thread James
o docs that explains this in more detail? I haven't been able to find it. Thank you very much! James On Apr 26, 3:17 pm, Shawn Milochik wrote: > If you're creating a ModelForm that already has data in the database, > don't pass in request.POST. Instead, pass in the instan

Re: User Profile and Form initial values

2011-04-27 Thread James
Doh! As much as I read in the forms section, I skipped the ModelForms part, even though that's what I was using! Thanks again! James -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Flatpages - Django 1.5.1

2014-01-20 Thread James
o Django admin and created: URL: /about/ Title: About Content: testing… Sites: 127.0.0.1:8000 I clicked ‘view on site’ within the Django admin > flatpages > /about/ and I get sent to http://localhost:8000/about/ which returns a 404. I opened up a SQLite browser and I can see that m

Re: Flatpages - Django 1.5.1

2014-01-21 Thread James
Fixed. After some Google-fu I set SITE_ID = 2 and it worked. On Monday, January 20, 2014 4:41:05 PM UTC-8, James wrote: > > I’m having trouble implementing flatpages in Django 1.5.1 - I’m new to > Django/Python (~3 months) so any insight is appreciated. > > I’ve added flatpa

Re: Do you think Django's future is threatened by JS frameworks in both client & server?

2014-01-28 Thread James
This is something I've been thinking about myself lately. I'm working on a side project right now that is extremely JS heavy on the client side. I eventually found myself saying screw it, and am now in the process of rewriting the client side using backbone. Django is more or less becoming a re

Django Channels 2 poor performance and high CPU usage

2018-03-26 Thread James
I'm using Channels 2 to build a shared 3D model viewing tool, but I'm running into performance issues where Channels can't keep up and uses 100% of a single core. This results in clients just receiving a slow trickle of messages rather than the fast stream I was expecting. I ended up stripping

Lazy ForeignKey references break in upgrade from 1.9 to 1.10

2019-03-11 Thread James
Hey everyone, While upgrading from 1.9 to 1.10, I got errors that lazy ForeignKey references cannot be resolved similar to the following (full stack trace is included below): ValueError: Related model 'appname.ModelName' cannot be resolved This occurs with anything from simple models to abstra

Troubling installing Python 3 on my iMac

2019-04-30 Thread James
I downloaded the file from the python website and went through the entire installation process... accepting all of the default values. However, when I went to my Terminal window and typed python, it still shows the older version: Python 2.7.10 (default, Feb 22 2019, 21:17:52) [GCC 4.2.1 Comp

Re: Troubling installing Python 3 on my iMac

2019-04-30 Thread James
Thanks Suresh! This did the trick. On Tuesday, April 30, 2019 at 7:36:30 AM UTC-6, Suresh Kannan wrote: > > Hi, > > Try these steps > > https://wsvincent.com/install-python3-mac/ > > https://stackoverflow.com/a/20868669/4037275 > > On Tue, Apr 30, 2019 at 8:

Missing staticfiles manifest entry on heroku app, runs fine locally

2020-06-25 Thread James
Hi everyone, I'm getting server error 500 when I deploy my app to heroku. The logs show an issue with staticfiles, even though I'm serving static and media from an S3 bucket: ValueError: Missing staticfiles manifest entry for 'images/favicon.ico' What's odd is that run I run locally, even with

Channel 1 and Django 2.2 compatibility

2020-01-09 Thread James
Hello guys just a quick question, I have a project running channel 1, we are looking at upgrading to django 2.2, does channel 1 work with django 2.2 without upgrading to channel 2? Cheers James -- You received this message because you are subscribed to the Google Groups "Django users&q

Re: Feature like "acts_as" in Django ORM or contrib ?

2008-10-21 Thread James Bennett
On Tue, Oct 21, 2008 at 12:45 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > In Elixir, when I add acts_as_list(qualifier=qualify) in Model I can > use move_higher, move_lower ... methods. Be careful about confusing multiple things here; there are applications available for Django which add f

Re: from mysite.polls.models import Poll, Choice

2008-10-23 Thread James Bennett
On Thu, Oct 23, 2008 at 1:47 PM, bruno desthuilliers <[EMAIL PROTECTED]> wrote: > It's indeed a pretty bad idea to refer to the project name in import > statements (as well as in a couple other places too FWIW), and I > defnitively fail to understand why it's documented that way. It's documented

ANN: Initial release timelines for Django 1.0.1 and Django 1.1

2008-10-24 Thread James Bennett
(putting on release manager hat...) We've just put up an entry over at the official Django project blog with details of the timelines for Django 1.0.1 and Django 1.1: http://www.djangoproject.com/weblog/2008/oct/24/upcoming-releases/ Please bear in mind the immediate consequences of these timel

Re: Django Equivalent to Rails Rumble

2008-10-25 Thread James Bennett
On Sat, Oct 25, 2008 at 10:45 AM, Keyton Weissinger <[EMAIL PROTECTED]> wrote: > Is there an equivalent to the Rails Rumble for the Django community? > Shouldn't there be one? What do you think? There was one a couple months ago: http://djangodash.com/ Google is your friend :) -- "Bureaucrat

Re: Receiving emails via app

2008-10-26 Thread James Bennett
On Sat, Oct 25, 2008 at 2:09 PM, Jeff Anderson <[EMAIL PROTECTED]> wrote: > We have an alias set up in postfix that sends the e-mail to our script > via a pipe. > > The python script imports our Django models, and parses the e-mail > message with the email module, and does what it needs to. You c

Re: database API from external tools?

2008-10-26 Thread James Bennett
On Sun, Oct 26, 2008 at 9:19 PM, Steve Holden <[EMAIL PROTECTED]> wrote: > Here's a specific example of a piece of code that uses a web app's > models. It should get you started - just dive in and write some code! > The tricky bit is providing the settings without using a "settings" > module. I ca

Re: Easiest way to pass django documentation from rest to HTML?

2008-10-28 Thread James Bennett
On Mon, Oct 27, 2008 at 9:27 PM, Mr. Z <[EMAIL PROTECTED]> wrote: > Which is the easiest way to pass the new django documentation from > rest to HTML? This is covered in the documentation: http://docs.djangoproject.com/en/dev/internals/documentation/ -- "Bureaucrat Conrad, you are technicall

Re: Easiest way to pass django documentation from rest to HTML?

2008-10-29 Thread James Bennett
On Wed, Oct 29, 2008 at 5:59 AM, Mr. Z <[EMAIL PROTECTED]> wrote: > Thank you both. I'm trying to create a view that converts the ReST > documentation to HTML and shows it integrated with my templates, but > with docutils it gives out a lot of errors. And with sphinx it just > generates plain comp

Re: changing the Manager the admin-site should use

2008-10-30 Thread James Bennett
On Thu, Oct 30, 2008 at 7:31 AM, Dennis Schmidt <[EMAIL PROTECTED]> wrote: > Well that does work, though in the Manager documentation it's said: > > "If you use custom Manager objects, take note that the first Manager > Django encounters (in the order in which they're defined in the model) > has a

Re: Using settings.py mechanism for application settings

2008-10-31 Thread James Bennett
On Fri, Oct 31, 2008 at 8:29 PM, pk <[EMAIL PROTECTED]> wrote: > Am I missing something? Should that mechanism be refactored so that it > can be used for user applications? Is there a better way to do > application level configuration -- i.e. for app designed to be > distributed and reused? If yo

Re: Python package names

2008-11-03 Thread James Bennett
On Mon, Nov 3, 2008 at 6:23 AM, Dj Gilcrease <[EMAIL PROTECTED]> wrote: > Cause I actually like having the django_apps namespace so I can > quickly identify if something being imported is a django app or some > regular python module A Django application *is* a Python module. It's not some secret

Re: Using settings.py mechanism for application settings

2008-11-04 Thread James Bennett
On Mon, Nov 3, 2008 at 7:01 PM, pk <[EMAIL PROTECTED]> wrote: > James is right that for any of my own app, I can just tell the user > to put in some settings in the project level settings.py file. In fact > that is exactly what I do now. And that is what quite a number of popu

Re: django admin - list filter - issues with model fields having name ending in 'y'

2008-11-05 Thread James Bennett
On Wed, Nov 5, 2008 at 11:31 PM, ammo <[EMAIL PROTECTED]> wrote: > Does this thing work for anyone else? Well, it works fine for me when I use "verbose_name_plural", which is the correct value and what's listed in the documentation (not "verbose_plural_name" as you've typed here). -- "Bureaucr

Re: post data and @login_required

2008-11-06 Thread James Bennett
On Thu, Nov 6, 2008 at 5:12 AM, coan <[EMAIL PROTECTED]> wrote: > Why isn't there an option to have the request object passed to the > login form? The login view in the Django admin actually used to do this; see our most recent security-oriented release for the reasons why it doesn't do that anym

Re: Installation of django in user account

2008-11-06 Thread James Bennett
On Wed, Nov 5, 2008 at 12:18 PM, Tim O'Toole <[EMAIL PROTECTED]> wrote: > But I obviously cant do the following without root access > > ln -s `pwd`/django-trunk/django SITE-PACKAGES-DIR/django > > Whilst I can set the PYTHONPATH, I can't then write to PythonPath in > the Apache configuration file

Re: How do I display a template with Chinese characters in it?

2008-11-09 Thread James Bennett
On Sun, Nov 9, 2008 at 10:13 PM, Frank <[EMAIL PROTECTED]> wrote: > The charset I use in the html file is 'gb2312'. > > What do I have to do in order to be able to display Chinese language > content? You probably want to have a look at the settings documentation: http://docs.djangoproject.com/en

Re: Django and Python 2.6

2008-11-10 Thread James Matthews
I just use 2.5.2 and i might upgrade when needed On Mon, Nov 10, 2008 at 10:44 AM, Kegan <[EMAIL PROTECTED]> wrote: > > I am planning to host at WebFaction. Anyone using Django + Python2.6 > at WebFaction ? Care to share ? > > On Nov 10, 4:42 pm, m0nonoke <[EMAIL PROTECTED]> wrote: > > I am using

  1   2   3   4   5   6   7   8   9   10   >