ld help me with what I hope is a winning
approach, installing 0.7 and dependencies.
Thanks,
--
[image: Christos Jonathan Hayward] <http://jonathanscorner.com/>
Christos Jonathan Hayward, an Orthodox Christian author.
*Amazon <http://amazon.com/author/cjshayward>* • Author
Bio<http://j
but not how to
take a starter Pinax project and make a finished site out of it. I'm
ignorant on that point. How can I cure my ignorance? What resources are out
there so I can get what was so easily in reach in older versions of Pinax?*
--
[image: Christos Jonathan Hayward] <http://jonathanscorner.
hat point. How can I cure my ignorance? What resources are out
there so I can get what was so easily in reach in older versions of Pinax?
--
[image: Christos Jonathan Hayward] <http://jonathanscorner.com/>
Christos Jonathan Hayward, an Orthodox Christian author.
*Amazon <http://amazon.com
give me any help to load static content appropriately (it doesn't work to
copy the line that loads media and change it to point to static values).
--
[image: Christos Jonathan Hayward] <http://jonathanscorner.com/>
Christos Jonathan Hayward, an Orthodox Christian author.
*Amazon
and not as a system whose features are best showcased in what
happens to be a social network, but I have more easily gotten a social
network running on 0.5 than more recent releases.
--
[image: Christos Jonathan Hayward] <http://jonathanscorner.com/>
Christos Jonathan Hayward, an Orthodox Christian author.
*
e 404 page.
I am running Django 1.2.1. How can I glue things together so a
@login_required decorator finds a logged-in user, and I can build on top of
that?
--
[image: Christos Jonathan Hayward] <http://jonathanscorner.com/>
Christos Jonathan Hayward, an Orthodox Christian author.
*Amazon <h
Part of my problem is that I haven't found mod_fcgi examples. Could I have an
example of a .fcgi file that says to connect to this port on this IP, with
indicators of any additional information needed (like the project path or the
deploy subdirectory.)
Jonathan Hayward, Author, Django JavaScript I
the second
request to another core?
If this isn't the default, can it be enabled, and are there race conditions
or other risks?
Thanks,
--
[image: Christos Jonathan Hayward] <http://jonathanscorner.com/>
Jonathan Hayward, an Orthodox Christian author.
*Amazon* <https://www.amazon.c
P.S. The source is at http://JonathansCorner.com/project/pim.tgz.
On Wed, Feb 15, 2012 at 3:40 PM, Christos Jonathan Hayward <
christos.jonathan.hayw...@gmail.com> wrote:
> I forgot to specify where. The traceback is on a '''python manage.py
> syncdb''', and happens immed
I forgot to specify where. The traceback is on a '''python manage.py
syncdb''', and happens immediately after the password is entered twice.
On Wed, Feb 15, 2012 at 3:39 PM, Christos Jonathan Hayward <
christos.jonathan.hayw...@gmail.com> wrote:
> I'm getting an error:
>
> Traceba
n Tue, Feb 14, 2012 at 12:32 PM, Kevin Anthony
<kevin.s.anth...@gmail.com>wrote:
> Did you include the module in your settings.py?
>
> Kevin
> Please excuse brevity, sent from phone
> On Feb 14, 2012 1:27 PM, "Christos Jonathan Hayward" <
> christos.jonathan.h
m.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
--
[image: Christos Jonathan Hayward] <http://jonathanscorner.com/>
Christos Jonathan Hayward, an Orthodox Christian author.
Author Bio <http://jonathanscorner.com/author/> •
*Ema
PS's
regular sendmail to power send_mail, retry_deferred, and emit_notices?*
*
*
Thanks in advance.
--
[image: Christos Jonathan Hayward] <http://jonathanscorner.com/>
Christos Jonathan Hayward, an Orthodox Christian author.
Author Bio <http://jonathanscorner.com/author/> • Boo
f the directories
> specified in your TEMPLATE_DIRS variable in settings.py.
> They are considered in the order they are written, so the base.html you are
> extending is the first you find in this sequence.
>
> Hope this helps, feel free to reply
>
> 2011/9/9 Chri
se.html.
--
[image: Christos Jonathan Hayward] <http://jonathanscorner.com/>
Christos Jonathan Hayward, an Orthodox Christian author.
Author Bio <http://jonathanscorner.com/author/> • Books<http://cjshayward.com/>
• *Email <christos.jonathan.hayw...@gmail
Breadcrumb note: someone on the list pointed out the middleware described at
the bottom of django-honeypot's homepage. That was what I wanted.
On Thu, Sep 8, 2011 at 1:21 PM, Christos Jonathan Hayward <
christos.jonathan.hayw...@gmail.com> wrote:
> I would like to incorporate django
to
lessen the load of spam?
--
[image: Christos Jonathan Hayward] <http://jonathanscorner.com/>
Christos Jonathan Hayward, an Orthodox Christian author.
Author Bio <http://jonathanscorner.com/author/> • Books<http://cjshayward.com/>
• *Email <christos.jonathan.hayw
the FastCGIExternalServer directive.
Is there a way I can leverage the /fcgi-bin/ directory and httpd.conf so
that requests for /shop/foo/ are serviced by Django?
--
[image: Christos Jonathan Hayward] <http://jonathanscorner.com/>
Christos Jonathan Hayward, an Orthodox Christian author.
Auth
I found the problem. I needed to put 'foo' (and 'django.contrib.admin') in
settings.INSTALLED_APPS.
On Sat, Apr 9, 2011 at 2:29 PM, Jonathan Hayward <
christos.jonathan.hayw...@gmail.com> wrote:
> I am missing a step in configuration, I believe, in getting a syncdb to
> c
the
tables created for the Django admin interface to work? For another project,
I couldn't save objects because an admin interface table didn't exist.)
--
[image: Christos Jonathan Hayward] <http://jonathanscorner.com/>
Christos Jonathan Hayward, an Orthodox Christian author.
Author Bio
inux_x86_64/lib/python2.7/site-packages',
'/tools/python/2.7/Linux_x86_64/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info']
Server
time: Thu, 30 Dec 2010 10:04:24 -0600
--
[image: Christos Jonathan Hayward] <http://jonathanscorner.com/>
Christos Jonathan Hayward, an Orthodox Christia
hrough and comment out the docstring and __str__() and
__unicode__() methods.
What are the likely causes, and what can I do to fix this?
--
[image: Christos Jonathan Hayward] <http://jonathanscorner.com/>
Christos Jonathan Hayward, an Orthodox Christian author.
Author Bio <http://
Thank you.
On Tue, Sep 14, 2010 at 3:01 AM, Daniel Roseman <dan...@roseman.org.uk>wrote:
> On Sep 13, 10:50 pm, Christos Jonathan Hayward
> <christos.jonathan.hayw...@gmail.com> wrote:
> > Other attempts to write a clean that would run a print statement and then
> &
.
On Mon, Sep 13, 2010 at 3:44 PM, Christos Jonathan Hayward <
christos.jonathan.hayw...@gmail.com> wrote:
> I have a TextURLField defined below, and I am trying to get the clean() to
> prepend http:// to all entries that do not contain a ':'. In other words,
> if someone enters "g
alidators(value)
return value
def get_internal_type(self):
return u'TextField'
def __init__(self, *arguments, **keywords):
models.URLField.__init__(self, *arguments, **keywords)
Any suggestions?
--
[image: Christos Jonathan Hayward] <http://jonathanscorner.com/&
)
def format_timestamp(self):
return directory.functions.format_timestamp(self.timestamp)
Any comments on how either I am misunderstanding how to use
GenericForeignKeys, or how I might otherwise be clobbering one model type
with another?
--
[image: Christos Jonathan Hayward] <h
Thanks, and noted for the future. I went with a regular BooleanField
defaulting to False.
On Sat, Sep 11, 2010 at 7:08 AM, Preston Holmes <pres...@ptone.com> wrote:
>
>
> On Sep 10, 2:43 pm, Christos Jonathan Hayward
> <christos.jonathan.hayw...@gmail.com>
P.S. Setting:
.filter(is_invisible__in = [False, None])
is not working as intended; I seem to be getting no matches when I should be
getting matches.
On Fri, Sep 10, 2010 at 4:19 PM, Christos Jonathan Hayward <
christos.jonathan.hayw...@gmail.com> wrote:
> How can I filter for instanc
How can I filter for instances having a NullBooleanField that is not True
(i.e. is either False or a null)?
--
[image: Christos Jonathan Hayward] <http://jonathanscorner.com/>
Christos Jonathan Hayward, an Orthodox Christian author.
Author Bio <http://jonathanscorner.com/author/>
I finally pinned down the problem; it was in an unrelated area.
Thanks,
On Tue, Aug 31, 2010 at 5:59 PM, Christos Jonathan Hayward <
christos.jonathan.hayw...@gmail.com> wrote:
> I have an Entity which has a many-to-many field "tags" to Tags. I'm trying
> to pin down a bu
cts.get(id =
int(search.group(2
entity.save()
Is the code above, with the .tags.remove() code, enough, or do both the
Entity and the Tag need to have a call to break the link?
--
[image: Christos Jonathan Hayward] <http://JonathansCorner.com>
Christos Jonathan Hayw
ther lookup specified.
>
> Alex
>
> On Aug 25, 1:37 pm, Christos Jonathan Hayward
> <christos.jonathan.hayw...@gmail.com> wrote:
> > I think I found the problem; for the record, I wanted text__exact, not
> > text__equals.
> >
&g
I think I found the problem; for the record, I wanted text__exact, not
text__equals.
On Wed, Aug 25, 2010 at 1:27 PM, Christos Jonathan Hayward <
christos.jonathan.hayw...@gmail.com> wrote:
> I am trying to get a many-to-many tagging setup working, and I am getting
> an error whic
a
name I am testing against.
--
[image: Christos Jonathan Hayward] <http://JonathansCorner.com>
Christos Jonathan Hayward, an Orthodox Christian author.
Author Bio <http://JonathansCorner.com/author/> • Books<http://CJSHayward.com/>
• *Email <christos.jonathan.hayw...@g
/Versions/2.6/lib/python2.6/lib-tk',
>> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old',
>> '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload',
>> '/Library/Python/2.6/site-packages',
>> '/System/Library/Framew
PM, Christos Jonathan Hayward <
christos.jonathan.hayw...@gmail.com> wrote:
> Thank you; I'm not seeing how. My admin.py reads:
>
> import django.contrib.admin
> import directory.models
> import tagging
>
> django.contrib.admin.autodiscover()
> djan
t; Check the admin.py file for the app that contains the Entity model.
>
> On 18 August 2010 10:57, Christos Jonathan Hayward <
> christos.jonathan.hayw...@gmail.com> wrote:
>
>> I am trying to migrate from one server to another: I tarred it up on the
>> Linux server,
/Versions/2.6/Extras/lib/python/PyObjC',
'/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode']Server
time:Tue, 17 Aug 2010 19:53:40 -0500
--
[image: Christos Jonathan Hayward ← An Orthodox Christian
author.]<http://JonathansCorner.com>
Christos Jonathan H
Thank you!
On Fri, Jul 23, 2010 at 1:44 AM, Daniel Roseman <dan...@roseman.org.uk>wrote:
> On Jul 22, 9:55 pm, Jonathan Hayward
> <christos.jonathan.hayw...@gmail.com> wrote:
> > Would it make sense to make
> >
> > A: A TextEmailField which does not have th
Would it make sense to make
A: A TextEmailField which does not have the ForeignKey, and
B: A model which has the foreign key and a TextEmailField
as a better and more standard approach?
On Thu, Jul 22, 2010 at 3:13 PM, Jonathan Hayward <
christos.jonathan.hayw...@gmail.com> wrote:
--
→ Jonathan Hayward, christos.jonathan.hayw...@gmail.com
→ An Orthodox Christian author: theology, literature, et cetera.
→ My award-winning collection is available for free reading online:
☩ I invite you to visit my main site at http://JonathansCorner.com/
--
You received this message
# ...or you could leave off app_label, if there are no conflicting model
>> names
>> my_ct.get_object_for_this_type(pk=my_pk)
>>
>> That way you could use get_object_or_404() in your view.
>>
>> Ben
>>
>>
>> On Thu, Jul 15, 2010 at 10:21 AM, Jonat
Thank you! Let me play with it.
On Thu, Jul 15, 2010 at 10:41 AM, Daniel Roseman <dan...@roseman.org.uk>wrote:
> On Jul 15, 4:19 pm, Jonathan Hayward
> <christos.jonathan.hayw...@gmail.com> wrote:
> > I'm looking at a problem and see how to solve it, probably badly, wi
uot;description" are effectively replaced by dynamically
provided values?
--
→ Jonathan Hayward, christos.jonathan.hayw...@gmail.com
→ An Orthodox Christian author: theology, literature, et cetera.
→ My award-winning collection is available for free reading online:
☩ I invite you to visit
Thank you; noted; that fixed it.
On Thu, Jul 15, 2010 at 5:51 AM, Tom Evans <tevans...@googlemail.com> wrote:
> On Wed, Jul 14, 2010 at 8:48 PM, Jonathan Hayward
> <christos.jonathan.hayw...@gmail.com> wrote:
> > I am working on debugging a basic template, and after
, in patch_vary_headers
if response.has_header('Vary'):
AttributeError: 'SafeUnicode' object has no attribute 'has_header'
This wasn't the usual format for a Django traceback, and the traceback is
only in Django code, no reference to my project.
Suggestions? Would it make sense to open a bu
d__exact = id)[0]
>
> (note id__exact rather than id__equals)
>
>
>
> On Jul 14, 3:18 pm, Jonathan Hayward
> <christos.jonathan.hayw...@gmail.com> wrote:
> > How do I look up a model instance by id (its primary key)? I have:
> >
> > entity = directory
it, I can ask my company whether they'd be
> happy with me publishing it.
>
> Cheers, Euan
>
> On Jul 7, 10:35 pm, Jonathan Hayward
> <christos.jonathan.hayw...@gmail.com> wrote:
> > I'm working on a view made to output JSON for Ajax use. My log has:
> >
> > [07
be going about this given the id field
beforehand?
--
→ Jonathan Hayward, christos.jonathan.hayw...@gmail.com
→ An Orthodox Christian author: theology, literature, et cetera.
→ My award-winning collection is available for free reading online:
☩ I invite you to visit my main site at http
Never mind; I found:
import json
def view(request):
...
my_result = ...
return HttpResponse(json.dumps(my_result), mimetype="application/json")
On Wed, Jul 7, 2010 at 6:05 PM, Jonathan Hayward <
christos.jonathan.hayw...@gmail.com> wrote:
Wed, Jul 7, 2010 at 4:35 PM, Jonathan Hayward
> <christos.jonathan.hayw...@gmail.com> wrote:
> > I'm working on a view made to output JSON for Ajax use. My log has:
> > [07/Jul/2010 17:47:13] "POST /ajax/login HTTP/1.1" 500 50678
> > That looks like Django gav
easily enough create JSON manually, but is there a
preferred way to take dicts, lists, strings, numbers, etc. and render a
structure as JSON?
--
→ Jonathan Hayward, christos.jonathan.hayw...@gmail.com
→ An Orthodox Christian author: theology, literature, et cetera.
→ My award-winning collection
to a file or equivalent? The
test server has no MTA so I can't really ask it to email me exceptions.
TIA,
--
→ Jonathan Hayward, christos.jonathan.hayw...@gmail.com
→ An Orthodox Christian author: theology, literature, et cetera.
→ My award-winning collection is available for free reading online:
☩ I
Thank you! Solved.
On Mon, Jun 28, 2010 at 4:14 PM, Jeff Green <jeffhg2...@gmail.com> wrote:
> You need to also state that null=True. Also, you want to have ensure that
> the field defined in your db
> allows null values.
>
> On Mon, Jun 28, 2010 at 3:19
P.S. This problem did not resurface after I made other changes discussed
elsewhere in the thread; it seems to be secondary damage.
On Mon, Jun 28, 2010 at 2:46 PM, Jonathan Hayward <
christos.jonathan.hayw...@gmail.com> wrote:
> Thanks for pointing me to South. I've glanced over it,
'/usr/lib/pymodules/python2.6/gtk-2.0',
'/usr/local/lib/python2.6/dist-packages']Server time:Mon, 28 Jun 2010
15:13:53 -050
--
→ Jonathan Hayward, christos.jonathan.hayw...@gmail.com
→ An Orthodox Christian author: theology, literature, et cetera.
→ My award-winning collection is available for free
> On Jun 26, 2010, at 1:49 AM, Jonathan Hayward wrote:
>
> > No; that sounds like the issue then?
> >
> > If my project directory is named "directory", and I want to access the
> "Entity" model in "models.py", what do I add to INSTALLED_APPS? I
rent model changes, just
> running syncdb will not make the appropriate changes to your tables. You
> probably need to look into south migrations.
>
> On Fri, Jun 25, 2010 at 2:09 PM, Jonathan Hayward <
> christos.jonathan.hayw...@gmail.com> wrote:
>
>> P.S. Renaming the
t tell.
On Fri, Jun 25, 2010 at 5:35 PM, Oleg Lomaka <oleg.lom...@gmail.com> wrote:
>
> Did you add your application to INSTALLED_APPS before running syncdb?
>
> On Jun 26, 2010, at 12:09 AM, Jonathan Hayward wrote:
>
> > P.S. Renaming the (SQLite) database file and running
10 at 3:00 PM, Jonathan Hayward <
christos.jonathan.hayw...@gmail.com> wrote:
> I received the error below from the admin interface; I thought it was
> because I needed to run a syncdb, but stopping the server, running a syncdb,
> and restarting has generated the same error:
>
> Op
and want to manually
create some dummy data in the table. Any suggestions?
--
→ Jonathan Hayward, christos.jonathan.hayw...@gmail.com
→ An Orthodox Christian author: theology, literature, et cetera.
→ My award-winning collection is available for free reading online:
☩ I invite you to visit my main
/gst-0.10', '/usr/lib/pymodules/python2.6',
'/usr/lib/python2.6/dist-packages/gtk-2.0',
'/usr/lib/pymodules/python2.6/gtk-2.0',
'/usr/local/lib/python2.6/dist-packages']Server time:Wed, 23 Jun 2010
10:46:07 -0500
--
→ Jonathan Hayward, christos.jonathan.hayw...@gmail.com
→ An Orthodox Christian
Thanks, Dan and Daniel.
On Tue, Jun 22, 2010 at 3:45 PM, Daniel Roseman <dan...@roseman.org.uk>wrote:
> On Jun 22, 9:11 pm, Jonathan Hayward
> <christos.jonathan.hayw...@gmail.com> wrote:
> > What is the preferred way to make e.g. a TextField that will pass
> validat
into errors with the first. Does this mean that I should go with the
second, or is there another way that is preferred?
I'm using 1.2.
--
→ Jonathan Hayward, christos.jonathan.hayw...@gmail.com
→ An Orthodox Christian author: theology, literature, et cetera.
→ My award-winning collection
lidation/#using-validators
>
> Alex
>
> On May 26, 8:24 am, Jonathan Hayward
> <christos.jonathan.hayw...@gmail.com> wrote:
> > Thanks!
> >
> > On Wed, May 26, 2010 at 5:32 AM, Daniel Roseman <dan...@roseman.org.uk
> >wrote:
> >
> >
&g
Thanks!
On Wed, May 26, 2010 at 5:32 AM, Daniel Roseman <dan...@roseman.org.uk>wrote:
> On May 25, 10:49 pm, Jonathan Hayward
> <christos.jonathan.hayw...@gmail.com> wrote:
> > For CharField, EmailField, URLField, etc., is VARCHAR implementation
> > (meaning a fix
TEXT
instead of VARCHAR so that a field of indefinite length is accommodated,
resources permitting?)
--
→ Jonathan Hayward, christos.jonathan.hayw...@gmail.com
→ An Orthodox Christian author: theology, literature, et cetera.
→ My award-winning collection is available for free reading online:
☩ I
I found the problem; I was trying to serve static (non-admin) media from a
'media/', and that was apparently being overridden by admin media use of the
same URL.
On Tue, Apr 27, 2010 at 7:53 PM, Jonathan Hayward <
christos.jonathan.hayw...@gmail.com> wrote:
> Thank you; right now I
> Hi,
>
> Use this FILE_UPLOAD_PERMISSIONS = 0600
> and you have to give permissions to apache to read the file upload
> directory.
>
>
>
>
> Jonathan Hayward wrote:
>
>> The file permissions are right AFAIK; the directory is mode 755 and the
>> file 644,
ve the right permissions for accessing it with the
> user that runs the dev server.
>
> Regards,
> Xavier.
>
> Le 28 avr. 2010 à 01:00, Jonathan Hayward a écrit :
>
> Thank you!
>
> Right now, I have, in settings.py:
>
> MEDIA_ROOT = os.path.join(os.path.abspath(os
'document_root':
> settings.MEDIA_ROOT,
> 'show_indexes': True }),)
>
>
> To answer your question, you should
> use os.path.abspath(os.path.dirname(__file__)) instead of
> os.path.dirname(__file__).
>
> Regards,
> Xavier.
>
>
r this way or if I add a trailing
slash.
How can I serve up static content from /media/* to a URL of
/media/* from the development server?
--
→ Jonathan Hayward, christos.jonathan.hayw...@gmail.com
→ An Orthodox Christian author: theology, literature, et cetera.
→ My award-winning collection is
ck dtd }} ... {{ endblock dtd }}
>
> the properly syntax (for last Django version) would be:
>
> {% block dtd %} ... {% endblock %}
>
> Notice you should not include 'dtd' in the endblock tag.
>
> -f
>
>
>
>
>
>
> On Apr 27, 3:51 pm, Jonathan Hayward
>
}{{ endblock
footer_javascript_site }}{{ block footer_javascript_section
}}{{ endblock
footer_javascript_section }}{{ block footer_javascript_page }}{{
endblock
footer_javascript_page }}
{{ endblock footer_javascript }}
{{ endblock footer }}
--
→ Jona
.org/chris1610/satchmo/wiki/ImprovedInstallationProcess>Hope
> it helps
>
> lzantal
>
>
>
> On Mon, Mar 22, 2010 at 12:14 PM, Andrew <teres...@gmail.com> wrote:
>
>> Go to:
>> http://groups.google.com/group/satchmo-users
>>
>> On 15 мар, 20:10, Jonathan Haywa
_skeleton
Do people have suggestions, including going to a Satchmo-specific list if
this list is not intended to discuss Django add-ons like Satchmo or Pinax?
--
→ Jonathan Hayward, a Senior Web Developer who cares deeply about usability
→ www.linkedin.com/in/jonathanhayward • jonathan.hayw...@p
Q: How many Django developers does it take to change a light bulb?
A: *NONE.* (There's an application for that that comes standard with any
Django installation.)
--
→ Jonathan Hayward, a Senior Web Developer who cares deeply about usability
→ www.linkedin.com/in/jonathanhayward • jonathan.hayw
77 matches
Mail list logo