I'm not a South expert, but I'd assume you'd do this via south data
migrations
(http://south.readthedocs.org/en/latest/tutorial/part3.html#data-migrations)
.
You'd create:
- One (auto) migration script to create the Base table and new columns in
Foo and Bar
- A data migration script to migrate the
Hi all,
Is there a preferred method to create an app such that the app is the focal
point and not the project? The app root is SCM root and it intended to be
published on PyPI. I see one of two way to go about this:
First method (my preferred):
* Create an app at the root level of a project, us
Only a couple small problems with that:
* No sample code for people utilizing the app in their own projects
* Unit testing environment is a little more unorthodox to set up - rather
than just using the example project's settings (and manage.py test
app_name), I'd have to do the configuration manua
hanks for the link to tox. I'd forgotten about that for this particular
project.
On Wed, Jul 11, 2012 at 6:58 PM, Russell Keith-Magee <
russ...@keith-magee.com> wrote:
> On Thu, Jul 12, 2012 at 9:00 AM, Demian Brecht
> wrote:
> > Only a couple small problems with that:
What does your Apache log look like? What, exactly, is the 500?
A common issue when deploying is if your fcgi or wsgi script doesn't have
the correct permissions set, which would cause an error that can't be caught
by Django.
-Original Message-
From: django-users@googlegroups.com [mailto:
users@googlegroups.com
Subject: Re: Can't use admin with apache
On 19/07/12 06:27, Demian Brecht wrote:
> What does your Apache log look like? What, exactly, is the 500?
mod_wsgi (pid=18094): Exception occurred processing WSGI script
'/usr/local/django/dogscience/apache/django.wsgi'
11:06, Demian Brecht wrote:
> You're running ls -l under your user account. The apache process needs
> r+w permissions to the database file.
Thx Demian my issue is now resolved (and I feel like a dumbass but who
cares!)
--
Matt Smith
http://mattsmith.org.nz
--
You received this mes
First off, I think a good question to ask is *why* do you want to learn
Django very deeply? Do you want to become a contributor to the project or
do you want to be a user? If you want to be a user, then I'd recommend
against getting too deep in Django (at least until it's absolutely
necessary). The
What, exactly are you confused about? What is your question?
2012/8/2 Robert
> Hi all, I´ve developed that model, but i´m quite confused about the
> sintax, looks a bit freaky... Hers my code:
>
> from django.db import models
>
> ##
> PROJETOS
In an authentication backend I'm currently writing, I've supplied a custom
User model that extends the contrib.auth User model. I have the need to
allow email addresses to be NULL.
A little context: I'm writing an OAuth2 wrapper for an OAuth2 client I
relatively recently wrote (yes, I know that th
Thanks for the quote, was unaware of the convention.
--
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/-/mxg72KZaS8EJ.
To post to this group, send email to djan
Thanks for the feedback guys..
What I ended up doing was adding the following lines to my models module:
from django.contrib.auth.models import User as BaseUser
BaseUser._meta.get_field("username")._unique = False
BaseUser._meta.get_field("email").null = True
Melvin: I tried your suggestion and
django-sanction is a wrapper for the sanction OAuth2 client library.
High level features include:
Provider agnostic: There is no assumption made about what providers should
be accounted for (as in the core sanction module). This means that while
providers that follow the OAuth 2 spec should be ha
Er, it's easy to install on Windows until you want to install a package
that has C extensions. Then, you're either scouring the web for pre-builts
(which can be a pain depending on your architecture and your level of
paranoia about the contents of the binaries) or you're installing a GNU
toolchain
> Or installing the M$ VC++ Express edition compatible with the
> version used for the Python build
> --
> Wulfraed Dennis Lee Bieber AF6VN
> wlfr...@ix.netcom.comHTTP://wlfraed.home.netcom.com/
>
>
Sure (or MinGW if I'm not mistaken) but the que
You *can* install Django on Linux, Mac or Windows. Choose the
environment that you're most accustomed to if you're just trying to
get things done. However, if you want to learn Linux at the same time
(at least, bits of it), then I fully endorse going down that path.
On Wed, Sep 5, 2012 at 9:19 PM,
heir own, you have to explicitly
call them.
I would assume that something in the model's base class is what adds the
_state attribute. By short circuiting the constructor, you're preventing
this from ever happening.
--
Demian Brecht
@demianbrecht
http://demianbrecht.github.com
--
You receiv
>
>
> I'm sure the OP from June 2010 will be pleased that his question has
> been answered so many times…
>
Eek, guess I should have read the posting date.
> PS: To call the parent class(es) constuctor(s) correctly when using
> python "new style" classes (ie: all Django classes and classes deriv
On 12-10-09 02:12 AM, Tom Evans wrote:
On Fri, Oct 5, 2012 at 6:13 PM, Demian Brecht wrote:
Call me paranoid: https://fuhm.net/super-harmful/
One guys (well publicized) internet rant on why he dislikes super does
not necessarily mean he is correct. Even if he is, follow his own
advice
b.com/demianbrecht/django-sanction
Docs are available at https://django-sanction.readthedocs.org/en/latest/.
--
Demian Brecht
http://demianbrecht.github.com
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this
ing:
Assertion failed: (PyBytes_Check(((typecastObject*)cast)->name)),
function _pq_fetch_tuples, file psycopg/pqpath.c, line 1138.
Abort trap: 6
Can anyone shed some light on this before I dig into gdb?
Thanks,
--
Demian Brecht
http://demianbrecht.github.com
--
You received this messa
p :P
On Mon, Apr 8, 2013 at 11:40 PM, Demian Brecht wrote:
> Before I spend too much time digging into this, I'm wondering if
> anyone else has run into this. I have both 3.3 (from binaries) and 3.4
> (from source) installed on OSX 10.8.3 (running postgre 9.2.2.0). I
> haven'
22 matches
Mail list logo