from which it
can import Site, but it would be far more productive to teach your IDE to
start a shell as above for those times when you want to play like this.
Bill
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this grou
pendent on whether
>>> the server is production or development or is there any smarter way?
>>>
>>> As ever any advice is much appreciated.
>>>
>>> Huw_at1
>>>
>>>
>>> You can also use the trick:
try:
from local_se
lying "aggregate" to the "thisPoints" queryset,
"thisPoints" hadn't touched the database. At that time, it is specifically
NOT a list of instances. It is still a queryset class instance. And the
"aggregate" method uses what's in it, but doesn't
rofile models and monkey patch it in so that any needed additional app
that finds profile from user in the standard way gets your chosen profile
instance.
Bill
Note: use of the term "monkey patch" is intentionally pejorative.
--
You received this message because you are subscribed to the
On Thu, Dec 27, 2012 at 8:26 AM, Dan Richards wrote:
> Hmmm...well that isn't working either - same error. My method for
> verifying it's picking up the right settings.py is by putting a syntax
> error in the settings.py it should be using and seeing that it generates an
> error. This is the se
stack frame for where they came from can
often dispel the mists.
Bill
--
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
ces, but if you need to reserve something in an
earlier step, e.g.; a user name during a sign up sequence, then you must
make the reservation in the database.
Bill
On Sun, Dec 30, 2012 at 1:35 PM, r4m <4thegdl...@googlemail.com> wrote:
> Hallo Ryan,
>
> thank you for your advice.
&g
phone_no=data['phone_no'])
> newbooks.save()
> return HttpResponse('Thanks for choosing themall, we will
> contact you as soon as possible.')
> else:
> return HttpResponse('Some fields are not filled
> corre
code was parsed and executed (defining functions, storing in globals) was
done at page load, and that script tag won't be executed again. You
probably have to exec code coming back that redefines a global. Further,
just redefining a named function may not server to change what is attached
On Tue, Jan 1, 2013 at 12:30 PM, hu mingchun wrote:
> add localhost to host field in settings.py
>
> 在 2009年6月24日星期三UTC+8上午10时09分25秒,Chris Haynes写道:
>>
>> I've just installed postgresql and psycopg2. I supplied a password in
>> the postgres install, but don't know how to supply it to psycopg2:
>>
persistent way.
Or am I missing your point?
Bill
On Thu, Jan 3, 2013 at 12:05 AM, Pedro J. Aramburu
wrote:
> Hi, I'm having troubles using the override_settings decorator. The thing
> is I'm writing an app that has it's own settings and I'm doing it with the
> appro
l, I have seen documentation that "pk" is special
in a field name context.
Good luck,
Bill
On Thu, Jan 3, 2013 at 1:08 PM, Sam Raker wrote:
> Is there a list of 'reserved words' for Django like there is for Python? I
> posted a question in here a few days ago about a mys
d, if necessary,
what they
are being imported, etc.
Having found the source, you could then:
See if there is a newer version with it fixed
Patch it yourself (and submit the patch to the maintainer)
Or live with it -- for now it's only a deprecation warning. You will
have to find it if you
benefit from transmitting only what has changed,
rather
than the entire arrangement, but this can be left as an eventual
optimization.
Bill
--
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@go
Maybe. But it's generally considered a bad idea to tie up a request thread
for that long.
A more common solution is to arrange for a background task to do the heavy
lifting.
If the user must know when the task is done, you can poll in JavaScript.
Bill
On Thu, Jan 10, 2013 at 8:21 AM,
You will need a number of Directory directives (though fewer than some
people think).
The mod_wsgi documentation is excellent. If you think otherwise it is
because you don't yet appreciate the complexity of the issues.
Bill
On Thu, Jan 10, 2013 at 3:27 PM, <7equivale...@gmail.com> wro
re you attempting to
use an existing database. Which database engine are you using (e,g.;
PostgreSQL, MySQL, etc. - different people will have insights into
different back ends)? Is a stack trace printed - if so, provide it for
us? At least, what is the exact text of the error message?
Bill
On Tu
o use.
By the way, Django provides a feature to "introspect" an existing database
and to compose models for it. I'll bet that it suggests the DataTimeField.
Bill
On Tue, Jan 15, 2013 at 10:06 AM, Chen Xu wrote:
> I am using my existing mysql db. I found out that if I have a
e, you may need to
return something other than None (which is what gets returned if you don't
use the return statement). (But I'm not sure of that. I've always had
something
to return.)
Bill
On Sat, Jan 19, 2013 at 5:35 AM, Raphael wrote:
> **
> hello Dex,
>
> you
g
row, you would, after the statement you provided, assign new values to one
or more of instance's attributes (e.g.; material.color = 'pink'), and then
call material.save().
Bill
On Tue, Jan 22, 2013 at 10:09 AM, Satinderpal Singh <
satinder.goray...@gmail.com> wrote:
> H
tell whether the available number changed
between GET and POST, or whether a non-javascript or firebug using user has
entered a number larger than you said was available, just in case you want
to provide different error messages for these two cases.
Bill
--
You received this message because you ar
Have you tried it without the quotes around 'detail' in the url template
tag invocation?
If I'm remembering correctly, the need for the quotes depends on django
version and options.
Bill
On Thu, Jan 24, 2013 at 9:01 AM, Amy Cerrito wrote:
> Thanks for your response!
>
f object that you need (whether it even has a save method),
so the reportlab mailing list, or getting a simple reportlab example to
write
to an open file object, would be your alternatives.
Bill
On Fri, Jan 25, 2013 at 5:26 AM, wrote:
> from reportlab.pdfgen import canvas
> from d
s like fix up the network configuration
and
ssh machine keys) I think that you're going to have trouble "just copy"ing.
Bill
On Fri, Jan 25, 2013 at 10:22 AM, Oscar Carballal wrote:
> For our project e-cidadania it was like that, we only had to make a
> clone of the git reposi
What OS? Is the file django-admin.py on your path? Is it marked as
executable? Try:
python django-admin.py startproject mysite
Bill
On Sat, Jan 26, 2013 at 4:06 AM, Mihkel Lukats wrote:
> Hi,
>
> suddenly "django-admin.py startproject mysite" doesn't work. what c
What python version are you using, and with what django version. Also,
please show an example of what code you are using/typing to update/add a
group.
On Sun, Jan 27, 2013 at 10:40 PM, Edwin Lunando wrote:
> Here is my model:
>
> class UserSIMS(models.Model):
> TATA_USAHA = 0
> DOSEN = 1
;s password.
It's a complex process for security's sake. Hopefully the overview above
will help you to understand the documentation.
Bill
On Mon, Jan 28, 2013 at 11:55 AM, Sarfraz ahmad wrote:
> How can i use django password reset method
> unable to understand the djang
Plus one on webfaction, if a shared host will do. If you want a virtual
private server to yourself, I like linode.
Bill
On Tue, Jan 29, 2013 at 10:11 AM, Luiz A. Menezes Filho <
luiz.menez...@gmail.com> wrote:
> These sites may help you:
> http://djangofriendly.com/h
ed in
session with admin privileges, and even in a no JS browser, grappelli might
make it hard to log in)?
Bill
On Wed, Jan 30, 2013 at 7:53 PM, Ken Ricci wrote:
> I have a Django/Grappelli admin form for job postings which has a
> manytomany relationship for job requirements (using filter_horiz
ion of the filter is in python, and could pass the argument
when calling album's method. (I'd suggest not calling the method
"get_absolute_url", however, because that name is special to Django, and is
not expected to take such an argument.)
Bill
On Thu, Jan 31, 2013 at 12:35 AM, Sa
t remember whether, in
your original post, you had some reason to, for example, store these times
in a different timezone than Django's and the database's configurations.)
Bill
On Fri, Feb 8, 2013 at 11:20 AM, laxmikant ratnaparkhi
wrote:
> I have not trimmed traceback. This
you can filter keys that shouldn't be saved. You can also then uses
setattr(self, key, value) instead of accessing self.__dict__, leaving you
the flexibility for some of these attributes to be properties, if that
turns out to be useful.
Bill
On Fri, Feb 8, 2013 at 12:50 PM, Tom Evans wrot
ou still may be able to figure it out by inspecting the database
schema. You can also temporarily set up to catch the Integrity Error close
to the origin, and call pdb.set_trace(), where you can examine the query to
see what models are involved.
Bill
On Sat, Feb 9, 2013 at 3:44 AM, Some Developer w
On Sun, Feb 10, 2013 at 10:50 AM, Some Developer
wrote:
> On 10/02/13 15:07, Bill Freeman wrote:
>
>> Did you previously have a field named 'title' in this model that was
>> marked unique, that you have since removed? If so, the column may still
>> be in the
a roll based class
on the body element). There may also be views that should be read only for
some roles and a form for others (though I prefer the separate "edit this
stuff" view approach). Consider using the django permissions and group
system for roles.
Bill
--
You receive
x27;t pass an argument
to a method being called using vanilla template syntax, you could write a
custom template tag, allowing, for example {% get_user_specific_price
model_instance %} . (Tags have access to the context, so you need not pass
it explicitly. Your view would still need to add reque
ct it
will have a smaller performance impact (no setting up of the Django request
object, looking up the session key, etc.).
Bill
On Tue, Feb 12, 2013 at 2:16 AM, Alagappan wrote:
> Hi,
>
> In my website, I have a few http pages and a few https pages.
>
> The session cookie has been
If the original requests aren't completing then perhaps you are running up
against some connection limit in your configuration?
On Wed, Feb 13, 2013 at 7:29 AM, Michał Nowotka wrote:
> This is really strange behaviour. When I issue POST request to many
> times django suddenly starts to ignore th
How are you invoking manage.py? Try cd'ing to the directory containing it
before running it and see if that helps. (That directory will then
automatically be on python's sys.path, which is needed.
DJANGO_SETTINGS_MODULE must be a python style package.module style path,
not a filesystem path, so d
uggestion, and you
want to take the time, then you can use the "m" command again to step over
the "from ... import ..." line, and then the "s" command to step into the
"execute_from_command_line" function, use "n" to step through it's parts
unt
You might try specifying distinct related names, just off the cuff. -Bill
On Wed, Feb 13, 2013 at 2:25 PM, Ray Hatfield wrote:
> Hi,
>
> I have a model which requires two addresses: a mailing address and a
> physical address. From an OO perspective it makes sense to have an Address
ver be included in STATICFILES_DIRS.
STATICFILES_DIRS are places where you have put, for example, you site wide
css, non-app related JavaScript, static images like backgrounds and buttons.
STATIC_ROOT is something you arrange for your front end (e.g.; Apache) to
serve, but you never put anything in
files or links. You should
>> never put anything there yourself. STATICFILES_DIRS are additional places,
>> beyond the "static" sub-directories of your installed apps, *FROM* which
>> collectstatic will get the files that it copies or links into STATIC_ROOT.
>> ST
sense to you and your co-developers.
Bill
On Tue, Feb 19, 2013 at 11:39 AM, frocco wrote:
> Thank you,
>
> So you have htdocs directory under each project on your website?
>
> so mine might look like.
>
> ntw
>htdocs
> assets
>
>
> On Tuesday,
instructions in the Django documents.
Bill
On Wed, Feb 20, 2013 at 10:36 AM, Vittorio wrote:
> As a newbye I'm using django 1.4.3 under Mac OS X.
> Reading the tutorials (and an Italian book on django by Marco Beri), I was
> able to set up my app 'home' using a legacy
The place where I used to work deployed lots of stuff to Webfaction, and we
never had trouble with bandwidth.
Webfaction customer support is superb. I'm sure that they can help you
keep tabs on your bandwidth usage as your user base grows.
One tip, if you find yourself getting close. is to make
The pisa pypi entry suggests that you switch to xml2pdf:
https://pypi.python.org/pypi/xhtml2pdf
On Wed, Feb 20, 2013 at 2:05 PM, Satinderpal Singh <
satinder.goray...@gmail.com> wrote:
> I am trying to produce pdf from html using the following code, but
> unable to do so, it gives an error that,
One workaround would be to forgo creation at syncdb time and use the
manage.py shell to create a user, set its superuser boolean, and save it.
On Thu, Feb 21, 2013 at 9:40 AM, lucien wrote:
> Hi,
>
> Thanks for your quick answer, I removed the 1.4.4 version and it works
> but when I answer yes t
Not quite right either, even if it didn't have the non matched open
parenthesis after the carat, since it would match "foo-bar--1234.html".
Perhaps '^(?:[a-zA-Z0-9]+-)+(?P\d+).html$'
(?:...) is a non-capturing group, if you're not familiar with it.
Bill
On Thu, F
OP didn't seem to be using the human readable part. He had a named group
for the numeric tail, but not for the rest.
Unusual, I agree, but folks are welcome to whatever url desing they want.
Bill
On Thu, Feb 21, 2013 at 5:15 PM, Arnold Krille wrote:
> On Thu, 21 Feb 2013 15:41:12 -0
s set configuration issues) for MySQL.
I don't use MySQL (especially since there are occasional questions about
its FOSS status, but then there is the fork - does that represent a
dilution of maintainers?), so someone else will have to tout its benefits.
Bill
--
You received this message becau
e else may have a comment.
What do you see as the source of urls with erroneous slashes?
Bill
On Sun, Feb 24, 2013 at 1:21 AM, Odagi wrote:
>
> Hello, according to
> https://docs.djangoproject.com/en/dev/ref/settings/#append-slash, using
> CommonMiddleware<https://docs.djangopro
Other urls.py files are imported, directly or via
other urls.py files, by the ROOT_URLCONF. If you're using admin, then the
ROOT_URLCONF typically runs admin.autodiscover(), which causes admin.py
files to be imported.
Bill
On Tue, Feb 26, 2013 at 12:19 PM, Chen Xu wrote:
> Hi everybody
A good place to start would be to fix the fact that, if the form is not
valid on a post, the view returns None.
Bill
On Wed, Feb 27, 2013 at 4:53 AM, okorie Emmanuel wrote:
> hi
>
> Am designing a form from django model, i have store some information in
> the database already, each
And
that's JavaScript on the browser writing window.location, NOT anything
within Django.
Bill
On Wed, Feb 27, 2013 at 9:01 AM, Maria wrote:
> Hi everyone! :)
>
> I am working on a project for my studies, it is a web poll where you can
> only answer yes or no by clicking
have that query parameter, or has the
equivalent of a "timed out" or "skip" button hard coded in its query
parameters. Either way, using the session saves you from having to
generate and match upon your "random" IDs.
Bill
On Wed, Feb 27, 2013 at 10:01 AM, Maria wrote:
anism that you are stuck with?
Bill
On Wed, Feb 27, 2013 at 11:00 AM, Maria wrote:
> Unfortunately, the ID is not unique, as every ID will be used 3 times in
> each session. Is it still possible to use JavaScript as a solution?
>
> Am Mittwoch, 27. Februar 2013 16:44:45 UTC+1 schrieb
, like:
form=from,
...
))
That's just an example. There are lots of ways to build up the context
("c" above) that you will pass to, for example, render_to_response.
Bill
On Thu, Feb 28, 2013 at 9:40 AM, Maria wrote:
> No I dont have a problem to find the
you with
it. Perhaps you could better describe why this is a variable, and from
where its
contents are intended to come?
Bill
On Thu, Feb 28, 2013 at 11:30 AM, Maria wrote:
> Can you tell me where exactly to insert that Variable?
>
>
> def detail(req
s a global variable,
the global
variable is hidden from that function body. The global declaration tells
python that
you really do want to use the global variable, even if you are setting it.
Bill
On Thu, Feb 28, 2013 at 11:57 AM, Bill Freeman wrote:
> In the lines:
>
>
equired by app1's urls.py is
required in addition.
Or isn't that your question?
Bill
On Fri, Mar 1, 2013 at 10:57 AM, Barun Saha wrote:
> I have two Django apps (say, app1 and app2) hosted on the same machine
> using Apache mod_wsgi. These two apps are hosted on two different
>
of, so it could behave differently
depending on class, allowing for mixed lists, if you prefer.
Bill
On Sun, Mar 3, 2013 at 9:03 AM, Serge G. Spaolonzi wrote:
> I am looking for best way to access object attributes described in a
> external list.
> The user case is to display a list of objec
1:28 AM, Barun Saha wrote:
> Bill,
>
> The URLs in the file for app1 do not have such prefix. Following are two
> lines from project/app1/urls.py -- other URLs have similar structure,
> including that for app2.
>
> urlpatterns = patterns('project.app1.views',
>
7;ve been fixing the wrong
one.
Bill
On Mon, Mar 4, 2013 at 9:03 AM, frocco wrote:
> That's good to know.
>
>
> On Monday, March 4, 2013 8:12:15 AM UTC-5, Venkatraman.S. wrote:
>
>> Always prefer to delete the .pyc fie for issues such as these wherein
>> changes
US, so when i push my code to a server in US
> timezone, i see this problem most often.
>
>
> On Mon, Mar 4, 2013 at 8:26 PM, Bill Freeman wrote:
>
>> This should not be a .pyc problem, since upon startup python compares the
>> modified time of the .pyc to that of the .py, if
Perchance do they appear under MEDIA_URL as admin/js/core.js, etc?
On Wed, Mar 6, 2013 at 10:44 AM, Derek wrote:
> (Working with Django 1.4)
>
> I would like to re-use Django admin's FilteredSelectMultiple widget inside
> a custom form. Right now I am working with "runserver" so I do NOT need
>
Sorry, I meant under STATIC_URL.
On Thu, Mar 7, 2013 at 8:33 AM, Bill Freeman wrote:
> Perchance do they appear under MEDIA_URL as admin/js/core.js, etc?
>
>
> On Wed, Mar 6, 2013 at 10:44 AM, Derek wrote:
>
>> (Working with Django 1.4)
>>
>> I wo
You were, I presume, touching wsgi to force a reload, in order to pick up
recent changes that you made. One of those recent changes was to some
view.py (sadly the statcktrace doesn't tell us which one, but it's one that
you recently changed), and you made an indentation error (perhaps you let a
ta
avoid the TAB key and
manually insert or remove the correct number of spaces, things will
continue to work.
Bill
On Thu, Mar 7, 2013 at 9:06 AM, frocco wrote:
> I do not understand what the error indentation means.
> I am new to django, coming from PHP.
> I was using touch, because unlike
erve you better.
Bill
On Thu, Mar 7, 2013 at 9:58 AM, frocco wrote:
> The problem with the stack trace, is that I could not tell what views.py
> it was talking about.
> I use PyCharm, but at work I think I used notepad++ to make a quick change.
>
> I understand now that is is a py
And a last stop gap, assuming the server is *nix, the find command will
find all files
with changes newer than a given time (though the syntax can be squirrelly.
On Thu, Mar 7, 2013 at 10:42 AM, Shawn Milochik wrote:
> On Thu, Mar 7, 2013 at 10:38 AM, frocco wrote:
> > Thanks you, I think I wil
That is weird. I don't know why 2 shouldn't satisfy a need for 2.
As far as a work around goes, one doesn't need to use url() to make a url
pattern.
Just a tuple with those two members will do it. I think of url() as a way
to
specify a pattern name without specifying the extra dict.
Unless thin
Well, nginx is a proxy to the fastCGI application. So you can't access it
from the usual URL when
nginx is stopped, but that doesn't mean that the process to which you
proxy, which is running
Django, has stopped.
On Fri, Mar 8, 2013 at 3:11 PM, Asier Hernández Juanes <
asiertxo...@gmail.com> wrot
rogram
to run instead, plus any flags and arguments to pass to it, and the path to
this file will be added as a last argument. A suitable first lines for .py
files would be:
#!/usr/bin/python
(assuming that /usr/bin/python is where python live on your system). The OS
sees the #! and actually
t line
(the one with name:).
The RFC 2616, for HTTP, may be stuffy, and have a lot of boiler plate in
the beginning,
but it's good reading.
Bill
On Mon, Mar 11, 2013 at 10:44 PM, lx wrote:
> *hi: *
> * I'm a new one in django, I' using the django recevice the data by
&g
t use methods.
Bill
On Tue, Mar 12, 2013 at 9:41 AM, Doug S wrote:
> Thanks for the quick replies.
> Straight fields it is, that makes things simple.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To
Note that you don't have to use the Django template engine to render things.
For one thing, if you found a less problematic templating engine, using it
as
well doesn't prevent you from using Django's template engine for other
pages.
You could also roll your own by coming up with, for example, a T
your favorite
browser(s) the ability to script the filling of upload fields.
There are engines that allow you to script clicking and typing on a
desktop, but I have no experience with them, and that sounds fragile to me,
since, for example, FireFox auto updates and where things are changes.
Bill
On Wed
o webfaction, and have no
complaints. EC2, if I recall, is a bit dear, but you can roll your own
distro for it, if necessary. There's a big wonderful world out there.
Bill
On Thu, Mar 21, 2013 at 10:38 AM, Tim Walzer wrote:
> Thats what I was afraid of. Unfortunately Media Temple DVs come
&g
Are you doing this for password security? If so, note that, while not
quite as easy as scraping command line argument, your environment is
avilable via /dev/mem, and is trivially available to any Trojan that an
attacker can convince this shell or any of its children (such as Django or
any manage.p
O_SETTINGS_MODULE environment variable and adjusts sys.path to be sure
that the directory containing manage.py is there, but that will come much
later for you, I think).
Bill
On Thu, Mar 21, 2013 at 1:13 PM, Lightning wrote:
>
>
> On Wednesday, March 20, 2013 11:50:49 PM UTC-7, Lightning wro
What O/S? What version of python? Can you get to python's prompt by just
typing python at a command prompt? If so, is the version that it printed
when it started the version that you expected? How about an actual cut and
paste of the error that you are seeing?
Bill
On Thu, Mar 21, 2013
What people do all the time is edit their settings file on their deployed
box and simple restart django (say by touching the wsgi script, or
restarting apache or nginx or whatever).
On Thu, Mar 21, 2013 at 9:47 PM, Alan Johnson wrote:
> I've got a Django web app with a complicated data model tha
Do you have an IRC client, such as the chatzilla plug in for firefox? Your
screenshot is unreadable to me, but if you're just going to
irc.freenode.netin your browser, it's not likely to work, since HTTP
and IRC are different
protocols.
On Fri, Mar 22, 2013 at 1:19 AM, Lightning wrote:
> 'Where
Wouldn't it be simpler to have two abstract classes, one, not having the
field, and the other being a sub class of the first, and just adding the
field?
On Thu, Mar 21, 2013 at 5:05 PM, Alan Johnson wrote:
> I've got an abstract model in my project that I want to use to define a
> field by defau
Good point. Personally, I agree about keeping credentials out of version
control, but I have had an employer who disagrees. Of course that's only
suitable for a completely private repository.
On Thu, Mar 21, 2013 at 4:58 PM, Alan Johnson wrote:
> I think hardcoding local machine development pa
le as $1 in the
the second argument, which builds the URL to which we are proxying. (If
you actually need parentheses in the regular expression, you escape them
with backslash.)
Good luck, Bill
On Fri, Mar 22, 2013 at 1:01 PM, Tim Walzer wrote:
> I have both mod_rewrite and mod_proxy available
Have you tried a breakpoint in the view? Might it be a CSRF problem?
On Fri, Mar 22, 2013 at 2:22 PM, Pratik Mandrekar wrote:
> Hello,
>
> I'm unable to get the POST json to tastypie from an android http client to
> work.
>
> *I have tried with HttpURLConnection*
>
> urlConnection = (HttpURLCon
y then when using runserver (sys.path is different). The
cleanest thing is to make things like when manage.py runs: 1. Insert the
directory containing manage.py onto the front of sys.path; 2. insert the
parent directory on to sys.path; 3. import PROJECTNAME; and 4. remove the
parent directory from sys.path
expression, lest your expression be interpreted as one of the other
commands.
Bill
On Sat, Mar 23, 2013 at 5:19 AM, Pratik Mandrekar wrote:
> The issue is with setting data in the http post request. I have tried it
> with curl and the web client and it works. CSRF is not the issue, requests
>
IRC, it's pretty
trouble free.
On Fri, Mar 22, 2013 at 11:57 PM, hugh Manchu wrote:
> geez Im not sure if I have an IRC Client.. its absense would explain this
> ... thanks alot Bill will look into this.
> will let you know as soo as I can
> Hugh
>
>
> On Fri, Mar 22
eader.
Bill
On Sat, Mar 23, 2013 at 9:52 AM, Pratik Mandrekar wrote:
> Thanks for the pdb tip Bill!
>
> I tried pdb at the point where the request enters Tastypie (based on
> http://stackoverflow.com/questions/13006901/tastypie-obj-create-method-not-being-called).
> What I see is t
It is also probable that if you like one or more of the apps that
pinax bolts together, that you can probably install it independent of the
overall pinax system. (sphene does some inter app communication using
middleware, so it's parts may be less separable from the group.)
Bill
On Sun
If the official site isn't there, that doesn't bode well for ongoing
support. I don't think that using Pinax for a project (2 to 3 years ago)
saved me any time. Perhaps you should consider another approach?
Bill
On Mon, Mar 25, 2013 at 6:42 PM, Christos J
Wouldn't you be better served by implementing the count() (which is
probably what the paginator calls) method on your raw queryset (subclassing
as necessary, whatever a raw queryset is), rather than poking into
paginator internals?
On Tue, Mar 26, 2013 at 5:51 AM, wrote:
> I'm trying to implemen
can't work that way, just that
it was surprising, and required specifying things strangely in the reverse
or url call. But I could be remembering a nightmare instead of reality.
There's always good old pdb.
Bill
On Tue, Mar 26, 2013 at 6:37 AM, rainikotobary wrote:
> Hello,
>
&g
More error message details? Stack trace? Does it happen right away at
startup, or do you have to visit one of these views,and if so, which?
On Tue, Mar 26, 2013 at 8:32 AM, Fusi0n wrote:
> Can someone spot something that could possibly cause a runtime error ?
> This the Poll example from the d
Are you sure that you restarted after making redirection changes in
production? Unlike runserver, most deployment schemes do not automatically
restart when a .py file is changed, so changes to them are not picked up.
You would have restarted when you switched DEBUG on and off, and other
changes wo
Stick a print statement between lines 91 and 92 to show you
model_module.__name__ .
(or use pdb if you're comfortable with it). My best guess is that the
split() is returning a
list of one item. That is, that there is no '.' in model_module.__name__
. Thus an index
of -2 failss: there is no penu
Perhaps take the site down (or clone it), set managed = True, ask manage.py
for sql for that app, and put everything back?
On Tue, Apr 2, 2013 at 3:46 PM, Serdar Dalgic wrote:
> Hi;
>
> In my project, we are using django 1.3.2, and we're on the verge of
> migrating to 1.4.
> I wrote a standalon
501 - 600 of 990 matches
Mail list logo