I now understand the purpose and worth of Django. What, then, are
the questions I need to ask potential hosts? I'm leaning toward Linode, but
would also like affordable managed hosting. On Sun, 26 Mar 2017 04:16:52
-0400 Lachlan Musicman wrote If you take
ways done it this way."
- Grace Hopper
On 26 March 2017 at 14:19, Ed Sutherland <e...@tburgnews.com> wrote:
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emai
Forgive me if this question is too basic, but I'm a relative newbie to
programming frameworks. As I understand it, a framework is built to abstract
common tasks within the native language (Python, PHP, Ruby, etc.) When
development using a framework is complete, will the production version of the
I certainly do. After a serious migration foul-up, I restarted the project. I'm
now hoping there won't be a repeat. I wish there was a better way.
On Fri, 10 Mar 2017 15:17:11 -0500 Matthew Pava
wrote
Does anyone else get a migraine when working migration
Sopacua wrote On
Wednesday 01 March 2017 13:27:37 Ed Sutherland wrote: > I am a relatively new
Django coder. I'm building a small custom CMS. > Whenever I get deep into
development, I run into a migration problem: > an old error keeps halting newer
migrations. I long ago fixed
I am a relatively new Django coder. I'm building a small custom CMS. Whenever I
get deep into development, I run into a migration problem: an old error keeps
halting newer migrations. I long ago fixed the original error, but the
migration continues to stop due to a now non-existent error. I know
I've been following the Django tutorial and cannot get the Admin portal to
work. Django is running via passenger in a shared environment on a virtual
env with Python 2.7. The main page and admin portal load static resources
(from static_url) just fine. Logging in with correct credentials yiel
Hi all,
New to Django so I was following along with the tutorial and can get to the
point of logging into the Administration portal (the main page works as
well). Django is running with passenger in a virtualenv (python 2.7) on a
shared host. I immediately receive a ERR_EMPTY_RESPONSE when
is, I have not been able to reproduce
it locally.
This started happening after I upgraded from Ubuntu 14.04 to 14.10.
Can anyone help me debug this?
thanks
Ed
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this
and a separate problem
revealed this to me. I've included a stack trace below though.
Cheers,
Ed
Running migrations:
Applying
auth.0002_customer_payingcustomer_projectmanager_staff...Traceback (most
recent call last):
File "./manage.py", line 10, in
execute_from_command_
Yep, agreed. This is what I've done.
Thanks for the reply!
Cheers,
Ed
On Sunday, 9 November 2014 15:16:51 UTC+1, Cal Leeming [iops.io] wrote:
>
> Sounds like a bit of a weird edge case, I've had all sorts of problems
> previously when moving to custom user models from a
On Sunday, 9 November 2014 14:50:54 UTC+1, Daniel Roseman wrote:
>
> On Sunday, 9 November 2014 13:40:12 UTC, Dr Ed wrote:
>>
>> Okay, I'm confused. I found it, in here:
>> /Users//.virtualenvs//lib/python2.7/site-
>> packages/django/contrib/auth/m
Okay, I'm confused. I found it, in here:
/Users//.virtualenvs//lib/python2.7/site-
packages/django/contrib/auth/migrations
Why are app related migrations being stored in this location?
Cheers,
Ed
On Friday, 7 November 2014 09:50:47 UTC+1, Dr Ed wrote:
>
> Hi all,
>
However when I
do this, I get "TypeError: Staff cannot proxy the swapped model
'emailcustomuser.User'.
"
We don't actually need the proxy users, so I tried deleting them, but this
didn't change anything (possibly because of these migrations I can't fi
ng: (undefined)
Number formatting:
123456789 is 123456789
3.14 is 3.14
$
On Monday, 17 June 2013 04:02:43 UTC-7, Tom Evans wrote:
>
> On Sun, Jun 16, 2013 at 8:06 AM, Ed >
> wrote:
> > Hello Dear Django Group.
> >
> > My first day with Django, I just got it insta
Hello Dear Django Group.
My first day with Django, I just got it installed on my computer, and am
trying to follow along with the first
tutorial: https://docs.djangoproject.com/en/1.4/intro/tutorial01/
I have Django's development server up, and I'm able to see the "It worked!"
Django welcome p
g for
localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for
default. Not used with sqlite3.
}
}
On Apr 10, 4:27 am, Ejah wrote:
> Can you post the db part of your settings file?
>
> On 10 apr, 06:05, Ed McLaughlin wro
thon_mys...
>
> Otherwise, you can always use SQlite for dev environment until you go to
> production. I find it a lot easier to manage.
>
> On 10 April 2012 10:54, Ed McLaughlin wrote:
>
>
>
>
>
>
>
> > Hello! I am working through the Django tutorial (
&g
Hello! I am working through the Django tutorial (
https://docs.djangoproject.com/en/1.4/intro/tutorial01/ ) and I have
hit a roadblock in the 'database setup' portion of part 1. When I
enter the command 'python manage.py syncdb' I get the error below. I
believe I properly installed MySQL Community
http://www.hoboes.com/Mimsy/hacks/replicating-djangos-admin/
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/-SBv03JcdswJ.
To post to this group, send emai
Ok. That last one actually worked. Just needed to a browser refresh to
re-load the script.
That's a total noob mistake. My bad. Thanks all :)
On Jul 21, 10:49 am, ed wrote:
> You mean like this:
>
> var data = {
> url: item.find("#id_url").val
;
Tried it. 'share' is still showing up false...
On Jul 21, 1:29 am, Daniel Roseman wrote:
> On Thursday, July 21, 2011 4:00:55 AM UTC+1, ed wrote:
>
> > I'm using the following javascript, so I can't check the HTML, can I?
> > How would I go about
I'm using the following javascript, so I can't check the HTML, can I?
How would I go about debugging this?
function bookmark_save() {
var item = $(this).parent();
var data = {
url: item.find("#id_url").val(),
title: item.find("#id_title").val(),
I'm learning Django by following the turorials in Django 1.0 Website
Development by Ayman Hourieh. I've been banging my head for a while on
this and I know it's probably something really simple that I'm
missing.
I'm using the following form:
class BookmarkSaveForm(forms.Form):
share = fo
You hit the nail on the head. The command import django executed in
the Python interpreter. Getting started seems like a giant uphill
battle, but fortunately I am quite determined. It also helps to have
helpful people like you supporting my learning.
Thanks again!
-Ed
On Jul 6, 2:44 pm
in python
Any help will be immensely appreciated.
Thanks,
Ed
I also tried manually changing the file permissions by unchecking
"Read only".
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
Hi,
I have followed the installation guide to the letter but am still
having issues when trying to syncdb.
I get the following error "The pysqlite library does not support C
extension".
I have installed pysqlite with the following setup.cfg
[build_ext]
#define=
include_dirs=/Library/Frameworks
Can anyone point me to some resources for building a Django-based news site?
--
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
djang
I am having difficulty getting my custom command to run on schedule. I'm
using django-chronograph, but I can't seem to get it to run like it can
(successfully) from the command line. Before I go into the background of
this problem, I will state my question: H*ow might I run a custom management
I have a select list dropdown box on my form that is populated with
data from a Model (Directors). The value of this dropdown doesn't need
to be saved; it is really only used to dynamically trigger another
element of the form (a dropdown titled Films). So when the user
chooses a Director, it dynami
I'm using django's url tag to move from one view to another:
Read more here
For most "items" this works perfectly. But I have an "item" with a /
character: Sci-Fi/Fantasy. In this instance, I get an error
Caught NoReverseMatch while rendering: Reverse for 'wiki_view' with
arguments '(u'Sci-fi/Fa
x27; ] = 2005
That is fed into the query:
query_set = Film.objects.filter(**incdict)
Ok, I hope that was clear. What I ask now is how to protect against
the unscrupulous user who seeps to bypass/exploit the input. Do I
need to escape special characters? Data validation? What is the best
way to
Cool. I'll to some work on this and check back to make sure it's not
insecure.
On Nov 12, 7:27 am, Masklinn wrote:
> On 2010-11-12, at 13:20 , Ed wrote:
>
>
>
> > It seems simple from a SQL point of view, but I'm wondering what the
> > best implementation
I'm brainstorming a search function for the user that is similar to
iTunes Smart Playlists. I can currently display all of the release
years for all of the films in the database. A user can pick a year and
see all of the films released in that year. Or I can show all of the
genres of movie. A user
request.POST/
FILES?
Thank you for your help so far,
Ed
On Nov 9, 3:33 am, Knut Ivar Nesheim wrote:
> The problem is here:
>
> if request.method == 'POST':
> form = UploadFileForm(request.POST, request.FILES)
>
> You need to make sure you always pass in
# custom upload and validation code here
>
> class ThumbnailUploadForm(UploadForm):
> pass
>
> class UploadFileForm(UploadForm):
> title = ...
>
> As for your current approach, it looks correct. I've done the same
> several times and it works as expected. Make sure yo
I have an image upload form that takes a title and a file for its
field. I have two uses for it. Most of the time I call it, I need both
a title and the image itself. But when I call it simply to grab a
thumbnail, I don't need the title. In fact, the form data is saved to
a different model that doe
, bruno desthuilliers
wrote:
> On 26 oct, 15:48, Ed wrote:
>
> > I do like this a lot. If I use post_save, is there a way to grab the
> > field that is altered?
>
> Nope, you have to use "pre_save" for this, load another (yet
> unmodified) copy of your model
I do like this a lot. If I use post_save, is there a way to grab the
field that is altered? I know the admin page seems to be able to
determine the changed field. . .
On Oct 26, 9:41 am, bruno desthuilliers
wrote:
> On 26 oct, 13:25, Ed wrote:
>
>
>
>
>
>
>
>
>
ust expose a method on each model that returns a sortable value
> that is consistent across all the models. (Or write a dedicated
> function to use instead of the lambda above, whichever makes more
> sense.)
>
> On Oct 26, 7:25 am, Ed wrote:
>
>
>
>
>
>
>
> > I want
I want to create a "What's New" section that lists all of the database
changes in the last day. I've added an "updated" field to my models:
class Film(models.Model):
.
.
.
updated = models.DateTimeField(auto_now=True)
class Actor(models.Model):
.
.
.
updated = models.DateT
Brilliant. Thanks!
On Oct 20, 9:41 am, Javier Guerra Giraldez wrote:
> On Wed, Oct 20, 2010 at 7:59 AM, Ed wrote:
> > what is the purpose of ifchanged?
>
> since the images are sorted by film, if you just show the film for
> every image it would be repeated. with {% ifch
Thanks for the suggestion. Javier's was exactly what I needed. The
one question I have is why what is the purpose of ifchanged? I'm
aware of the command but I don't see the purpose of it within a loop.
On Oct 20, 5:18 am, Daniel Roseman wrote:
> On Oct 19,
Thanks for the answers. I thought that the view was already pulling
the data. I didn't realize it gets pulled when called in the
template. I was able to rewrite the view to provide the data more
efficiently.
I have another related question on the topic of query expense. What
is the best practi
I have a table for Actor that I query and populate the result in
actor_list to pass to the template. I installed the Django Debug
Toolbar to check the queries hitting the database and found some
strange behavior. If I iterate through the actor_list, only one SQL
query is created, as expected:
{% f
On Aug 5, 2:23 pm, Karen Tracey wrote:
> On Thu, Aug 5, 2010 at 12:10 AM, Ed Schofield wrote:
> > Hi everyone,
>
> > I'm trying to use a view with multiple forms under Django 1.2.1. I'm
> > puzzled that the prefix parameter seems to screw up validation. Here
On Aug 5, 2:23 pm, Karen Tracey wrote:
> On Thu, Aug 5, 2010 at 12:10 AM, Ed Schofield wrote:
> > Hi everyone,
>
> > I'm trying to use a view with multiple forms under Django 1.2.1. I'm
> > puzzled that the prefix parameter seems to screw up validation. Here
= forms.IntegerField(required=False)
>>> field2 = forms.IntegerField()
>>>
>>> f1 = MyForm(data={'field1': 1, 'field2': 2})
>>> f2 = MyForm(data={'field1': 1, 'field2': 2}, prefix='p')
>>>
>>&
Hi,
I have a model field defined thus:
benefit = models.NullBooleanField()
In django 1.1 and 1.2 pre-alpha, nulls were displayed with a "?" icon
in list view. In the Admin change form, a pop-up menu appeared with 3
options (Unknown, Yes, No). Setting to "Unknown" and saving did not
generate any
write a wrapper around it if you wanted.
def x_edit(request, x_id):
x = X.objects.get(id = x_id)
if x.user != request.user:
return HttpResponseRedirect('/you cant edit that/')
return update_object(request, model = X, object_id = x_id,)
On Oct 12, 1:51 pm, "Ed Kawa
You can split that into multiple views if you want, but the idea is to
do the check before saving the object.
On Oct 12, 1:25 pm, "Ed Kawas" wrote:
> That works for retrieving information, but how can I save information too?
>
> Thanks for your patience,
>
> Ed
d-
in-users-that-pass-a-test
On Oct 12, 11:40 am, Ed wrote:
> Hi All,
>
> I am completely lost. I *think* that I have read most of the doc that
> i can find and I must be pretty dense, because I cannot figure this
> one out ...
>
> Let me outline what i have and where i want
Hi All,
I am completely lost. I *think* that I have read most of the doc that
i can find and I must be pretty dense, because I cannot figure this
one out ...
Let me outline what i have and where i want to go!
model:
# an X
class X(db.Model):
user = models.ForeignKey(User, unique=True)
nam
Just to throw my two cents in. My background is high-traffic fantasy
sports websites (a different sort of geekness) and I've dealt with
connection pooling and connection persistence separately on other
ancient platforms. I will +1 Alex's observation that connection
pooling and persistent connectio
start
with an excellent chance of extension. Location is downtown Toronto.
If it’s not for you, maybe someone you know?
Cheers,
Ed Rix
Resource Planning
Watercrest
"Bridging People with Technology"
(888) 244-7550 ext.110
e...@watercrest.net
--~--~-~--~~~---~--
er way. Or perhaps there's a more
django-y way of doing it?
Any info/pointers/tips would be appreciated.
//Ed
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group
On Oct 7, 6:32 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> > On the roadmap?
>
> Yes. Should certainly be in 1.1. Probably land in a few weeks.
Awesome, couldn't ask for more, thanks :)
--~--~-~--~~~---~--~~
You received this message because you are subs
he same table, which works, but I also want to
eventually use syncdb to create the database and want it to be able to
handle the situation correctly. Still not possible? Something I can
easily hack Model to do myself? On the roadmap?
Ed
--~--~-~--~~~---~--~~
You r
Thanks all for your advice. You have given me great info. I too have
heard good things about webfaction. I will research more into them.
Thanks again! :)
On Sep 3, 11:57 am, "Abdallah El Guindy" <[EMAIL PROTECTED]>
wrote:
> Google app engine provides free hosting, with Django support
>
> Link
hi all,
i am looking for a good web host for my django website. does anyone
suggest a good host? thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to d
Ticket #7813. Let me know if I messed up the ticket report!! :-)
Thanks,
- Ed
On Jul 18, 11:43 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Fri, 2008-07-18 at 09:34 -0700, Ed Menendez wrote:
> > I saw a previously closed ticket 7506 for a related (no pun intended)
in _reduce_ex
raise TypeError, "can't pickle %s objects" % base.__name__
TypeError: can't pickle function objects
Is this supposed to be supported? Did we just get lucky when it used
to work in a previous version? Let me know if you need more info!
- Ed
--~--~-~-
Even if it had the most beautiful site in the world, and that was enough to
get permission to use it, a responsible developer would write some unit
tests and check the items that he asked in his original question.
His highly-qualified scientists probably won't have any idea that a database
driver
Hello,
My project consists of a couple of stand-alone applications that gather and
process the data that the eventual Django-powered site will serve. I'm
seeing at least 6-8 months until work on the site will begin.
Is there a plan for upgrading Django to Python 3.0?
Thanks.
--~--~-~--
empty_label key as None
but now it works!
./ed
On Jun 15, 5:16 pm, "./ed" <[EMAIL PROTECTED]> wrote:
> Thanks a lot!
> i had the feeling it was a class/instance issue
> it should work fine now
>
> Thx again
>
> ./ed
>
> On Jun 15, 4:53 pm, "James
Thanks a lot!
i had the feeling it was a class/instance issue
it should work fine now
Thx again
./ed
On Jun 15, 4:53 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On Sun, Jun 15, 2008 at 7:58 AM, ./ed <[EMAIL PROTECTED]> wrote:
> > the problem is that wh
like that.
As anyone an idea how I can fix this problem because I can't allow
users to 'touch' the python files
Thanks
./ed
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users&qu
Twitter isn't a good candidate for simply creating a cache and replicating
your database. I'll just post a link, since it goes along with my own
thoughts.
http://ayende.com/Blog/archive/2008/06/03/Architecting-Twitter.aspx
On Sun, Jun 8, 2008 at 12:32 PM, lgr888999 <[EMAIL PROTECTED]> wrote:
>
I don't know if Trac is Django powered, but you may be able to port parts of
it for what you need.
On Tue, Jun 3, 2008 at 11:52 AM, The Code Janitor <[EMAIL PROTECTED]>
wrote:
>
> I want to have a source code repository view on my Django site. I can
> not find any such module available. Mostly I
I'm new to Django, as well, so don't take this reply as authoritative.
Chapter 20 of The Django book -- www.djangobook.com -- details various
deployment scenarios, including ones distributed among several servers. It
suggests that it is relatively easy to scale Django across several tiers
(web ti
http://aigame.wwudo.com/
Seems like that other URL is not working for everybody... Thanks
everyone for all the info (on the group and on the sites!). The
documentation for this framework really makes a difference.
On Feb 18, 12:41 pm, Ed Menendez <[EMAIL PROTECTED]> wrote:
> This was
http://aigame.digitalhaiku.com/
Special thanks to Eric Florenzano who gave us our introductory class
in Django. Hope this motivates some developers that are on the fence
on using Django.
- Ed
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google G
That will work -- assigning roles to Users makes sense. But, using
your setup, is there any way to enforce a single role per User? As it
is now, a single User could be assigned both a student and teacher
role.
Many thanks for your help.
Ed
After finally realizing that in django one cannot subclass models, and
then reading as much as I could find on alternative approaches, I
think I am close to a solution to the following problem, but I can't
quite seem to get all the way there on my own:
In simplified terms, I want multiple types
Hello, is there a way to force the django db model to load all fields
for a particular model _including_ any generic foreign keys (it doesn't
seem to do this by default).
Currently: Account.objects.select_related() will load all 'simple'
fields like IntegerField, CharField, etc, but not GenericFo
= models.IntegerField()
>>> client = Client.objects.get(pk=1)
>>> len(connection.queries)
1
>>> client.account.balance
400
>>> len(connection.queries)
2
>>> client.account.balance
400
>>> len(connection.queries)
3
Is this a bug or a is there some co
Hi django users,
I'd like to write a decorator for connecting functions like such:
def connect(sender, signal):
def _connect(fn):
dispatcher.connect(fn, signal=signal, sender=sender)
return _connect
...
@connect(Account, signals.post_save)
def reset_account_balance(sender, instance, sig
Is it possible to create a constraint that only allows a template tag
to be used only once?
This would be useful for a template inclusion tag that includes inline
javascript.
Thanks,
Ed.
--~--~-~--~~~---~--~~
You received this message because you are
Hi John, thanks for your introduction to django dispatchers. I think
this is a greatly overlooked facility and has many applications.
> 1- signals. Benefits: it works with all dbs (supported by django), the
> fields are sortable using the api. Drawbacks: you can't use non-django
> code to do dat
n the view.
So my question is how do I go about using the urlresolvers module with
generic views? Is it even possible, or should I not be using this
module at all? thanks. Ed.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goo
n the view.
So my question is how do I go about using the urlresolvers module with
generic views? Is it even possible, or should I not be using this
module at all? thanks. Ed.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goo
at 1:47 PM, Ed wrote:>> Hello, currently url patterns are hard coded into urls.py, in the> templates, and in some cases the views which return redirects. This is> becoming a dangerous practice in our application development. If one
> url needs to be changed due to an update in
Then in a template, refer to url as (using some fictional 'url'
templatetag):
link
Or in a view as:
return HttpRedirectResponse(urlhelper.get(URL_VIEW_RESPONSE, x.id,
y.id))
Please advise, thanks. Ed.
--~--~-~--~~~---~--~~
You received this message bec
port? I just looked at the online technet docs for
it and I couldn't find any mention of it anywhere. I have a very old
copy of SQL Server 7 that I could use to test with-- does that version
support schemas in the same manner as the most recent ones?
--Ed
--~--~-~--~~~
emas? If the latter, why? I find them very useful.
--Ed
--~--~-~--~~~---~--~~
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
tch for adding schema support:
>
> http://code.djangoproject.com/ticket/1051
>
> That's on an older version of Django but may give you some ideas.
It did give me some ideas, but I really think that schemas should be a
per-app setting (which I suppose is more accurately called a per-mo
Well I managed to get introspectdb working with schemas, but I don't
know if it's the right solution. What I'm doing right now is modifying
the schema search path.
If you think it's a good idea, I'd probably suggest looking at adding a
per project per app setting that specifies a schema. It would
figure out where these
sorts of calls are made, but this will be the first time that I've
looked at the Django source, so I thought I'd just ask in case I can
get an answer here sooner.
--Ed
--~--~-~--~~~---~--~~
You received this message because you a
88 matches
Mail list logo