On Mon, Dec 5, 2011 at 10:52 AM, anthony tresontani
wrote:
> I am using Django 1.3, django-nose, sqlite inmemory database.
>
> I tried with TestCase,TransactionTestCase, commit_on_success
> (decorator and context manager) and commit_manually. None of them
> worked.
i'm successfully testing transa
On Mon, Dec 5, 2011 at 12:37 PM, Reinout van Rees wrote:
> On 03-12-11 19:56, Tobia Conforto wrote:
>>
>> Here is the View base class:http://dpaste.com/hold/665528/
>
> That link will expire in a month, so that's not really suited to posting on
> a mailinglist that people might still read a month
On Mon, Dec 5, 2011 at 10:07 AM, sebastien piquemal wrote:
> Could you post a link to a place where class-based views are being
> criticized ? And also in what sense are they convoluted ?
i have previously expressed some problems with CBVs, maybe not so
solid as criticism; but i understand the po
hi,
Russel explained the real reasons of why your proposal doesn't fit so
good in Django.
still, this snippet:
On Mon, Dec 12, 2011 at 7:49 PM, Bernardo wrote:
> - The framework, within reason, should deduce as much as
> possible from as little as possible.
> That last phrase tells e
On Mon, Dec 26, 2011 at 11:09 AM, devbird wrote:
> dictionary
> is the attribute of a singleton object. It lives as long as the server
> instance is up.
>
> How could it be possible?
are you running a single instance of your django process? the
development server does; but any non-toy deployment
On Tue, Jan 3, 2012 at 11:54 AM, Carsten Fuchs wrote:
> How can I find only those blogs where *all* entries were (co-)authored by
> 123?
Blog.objects.exclude(entry__authors__ne=123)
--
Javier
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
T
On Tue, Jan 3, 2012 at 2:02 PM, Javier Guerra Giraldez
wrote:
> On Tue, Jan 3, 2012 at 11:54 AM, Carsten Fuchs wrote:
>> How can I find only those blogs where *all* entries were (co-)authored by
>> 123?
>
> Blog.objects.exclude(entry__authors__ne=123)
oops
On Wed, Jan 4, 2012 at 8:20 AM, Andre Terra wrote:
> No, you don't need to go reading about what MVC means. Django is a MTV
> framework, not MVC. There are similarities, but the differences are enough
> to confuse your head if this is your first time with either one.
I agree, i'd even say forget
On Tue, Jan 3, 2012 at 11:04 AM, Timothy Makobu
wrote:
> They charge me for only what I use, and their free quotas are generous.
doesn't the free tier expire after one year?
--
Javier
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post t
On Thu, Jan 5, 2012 at 2:35 PM, Dennis Lee Bieber wrote:
> That would have to be a very erratic clock setting -- are there
> systems that don't use an NTP server to synchronize the clock? (I think
> all of my computers synchronize on a weekly basis).
virtual machines can have terribly erra
On Thu, Jan 12, 2012 at 9:54 AM, Stuart Laughlin wrote:
> # author admits he is a non-sysadmin noob
ad-hominem
> # he installs everything globally rather than using virtualenv
on single-purpose servers it's not so important. still good practice,
but not mandatory.
> # he uses apache instead
On Thu, Jan 12, 2012 at 10:03 AM, Demetrio Girardi
wrote:
> I have already done this previously, however in this case the table
> has a multiple field primary key, unsupported by Django. There is no
> other field which is guaranteed to be unique that I can use as primary
> key in the Django model.
On Fri, Jan 13, 2012 at 1:03 PM, Stuart Laughlin wrote:
> Just wanted to clarify that there are in fact some instructions out there
> for options other than apache/mod_wsgi, even though mod_wsgi remains the
> official preferred option ("If you’re new to deploying Django and/or Python,
> we’d recom
On Fri, Jan 13, 2012 at 4:03 PM, Stuart Laughlin wrote:
> I don't construe that as Disqus officially preferring apache, but you
> are certainly entitled to your own interpretation.
right. their commentary at the PyCon (from memory, i haven't checked
the video) was something like "why apache and
On Mon, Jan 16, 2012 at 11:22 AM, Python_Junkie
wrote:
> Am I wrong in the assumption that there are less python packages
> available for non windows OS
yes, this is wrong. most development is done in non-windows OS.
what you're seeing is that since OSS is about sharing source, the main
form of
On Mon, Jan 16, 2012 at 11:43 AM, Python_Junkie
wrote:
> I have no issue with running a script that will compile the source
> code, if that was all there was to the process,
> but if someone has tweaked the source code
> and makes it work on a particular version of mac OS or ubuntu with a
> parti
On Wed, Nov 14, 2012 at 3:14 PM, Chris Pagnutti
wrote:
> The new index_together feature is great, but I think it's best to create an
> index on a table AFTER the table is filled, and assuming there won't be many
> new inserts.
AFAIK, this is an optimization advice applicable only for mostly-stati
On Wed, Nov 14, 2012 at 3:49 PM, Chris Pagnutti
wrote:
> Thanks for your reply. The tables I'm dealing with are entirely static, but
> some have many millions of records, which is why I want my indexes to work
> as good as possible. If I create my indexes manually AFTER populating the
> tables,
On Wed, Nov 21, 2012 at 5:53 AM, ?manu* wrote:
> count = qs.count()
> qs = qs[0:100]
>
> Unfortunately this executes the query twice, which I don't want.
while clearly non-optimal, i would guess that Postgresql's caches
should be able to skip most of the processing. Have you measured the
time im
On Wed, Nov 21, 2012 at 10:11 AM, Peter Edström wrote:
> You recommend using virtualenv. Why and in what scenarios?
always.
each and every time i haven't used it, i've regretted it later. it
not only lets you experiment but also in deployment you're guaranteed
a stable environment. Also it ma
On Wed, Nov 21, 2012 at 7:30 PM, Luisa Beck wrote:
> (I'm imagining the virtual environment like a sandbox around my project. I
> can play with the things I put into the sandbox.) So when I place a file
> outside of that, can I still access it when my virtual environment is
> active?
the 'sandbox
On Thu, Nov 22, 2012 at 10:19 AM, Luisa Beck wrote:
> But say I create a virtual environment and install a script that depends on
> another script that I haven't included in the virtual environment. That
> leads me to an error because the script can't be found in that virtual
> environment. Why do
On Mon, Nov 26, 2012 at 12:10 PM, Anton Baklanov
wrote:
> __str__ method works fine with python 3.
that's how it's supposed to be according to the six library. kinda
makes sense, since in Py3 all strings are unicode
--
Javier
--
You received this message because you are subscribed to the Goog
On Wed, Nov 28, 2012 at 5:51 AM, Loai Ghoraba wrote:
> Hi
>
> I have a little question: First, I am hosting my PDF files within /
> static directory, (as my understanding is that they are static files),
> so is this the correct way to host PDF files and downloadable files
> generally ?
>
> Second:
On Wed, Nov 28, 2012 at 10:03 AM, Javier Guerra Giraldez
wrote:
> i think there are a couple Django apps that help with that, while also
> abstracting the differences between servers.
found these:
https://gist.github.com/1776202
https://github.com/johnsensible/django-sendfile
--
On Wed, Dec 5, 2012 at 3:04 AM, JG wrote:
> I found a lot of examples on the internet, but the thing is - I am also
> working with Google App Engine.
(disclaimer, i haven't developed on GAE, I've just read the specs a few times)
yes, that's a problem. In your specific example, the tutorial you
On Thu, Dec 6, 2012 at 6:18 AM, joy wrote:
> content = models.CharField(max_length=500)
is that size even supported?
models.CharField maps to a VARCHAR() field, which AFAIK, is typically
limited to 255 chars. better use a models.TextField(), it maps to a
TEXT field, which is intended to longer
On Thu, Dec 6, 2012 at 7:25 AM, Larry Martell wrote:
>>
>> orm['travelbox.AccommodationImage'].objects.all().update(file='travelbox/accommodation/'
>> + F('url'))
>>
>> However that doesn't work - it executes the following SQL:
>>
>> UPDATE `travelbox_accommodationimage` SET `file` =
>>
On Thu, Dec 6, 2012 at 8:44 AM, Mārtiņš Jakubovičs
wrote:
> I have app "items" and in admin page I create two users with permisions to
> create, edit and delete "items". But I want that only user who create item
> can edit and delete id. How can I do that?
search for "record-level permissions"
-
On Fri, Dec 7, 2012 at 3:25 PM, Odagi wrote:
> I'll use Nginx with uWSGI or fastCGI (not sure yet), and my doubt is
> how can I shutdown my production Django app gracefully (for make
> changes for example).
on the first paragraph of the new uWSGI docs page about reloads:
"When running with the
On Thu, Dec 13, 2012 at 7:53 AM, laxglx wrote:
> Can anybody plz tell me how to add a foreign key an existing table using SQL
> Queries?
>>> I got the command, nut can't understand
>
> ALTER TABLE distributors ADD CONSTRAINT distfk FOREIGN KEY (address)
> REFERENCES addresses (address) MATCH FULL;
On Fri, Dec 14, 2012 at 8:37 AM, 4 The good Life we work
<4thegdl...@googlemail.com> wrote:
> Let's say I've choosen the 15th Dez 2012 as reminder date.
> Then by 1AM the system should send out an E-mail to the user. E-mail is
> saved under user-data.
- create a 'custom management command'
(https:
On Fri, Dec 28, 2012 at 9:37 AM, chad petzoldt wrote:
> With all of the other functionality I see, Im surprised that there isn't a
> way to feed fake "URL Requests" through django-admin.py or something like
> that, and have it dump the output to a file or even within the context of
> the python in
On Sat, Dec 29, 2012 at 3:39 AM, Taras_96 wrote:
> If we map software objects directly onto Django Models, then we'd end up
> with a TimeWindow table, where each row would only ever be referenced by
> exactly one Event. My understanding of the advantage of normalisation is
> that it prevents data
On Mon, Jan 7, 2013 at 10:51 PM, carlos wrote:
> maybe try deploy with gunicorn and nginx http://gunicorn.org/
> http://wiki.nginx.org/Main
while nginx/gunicorn is a very good setup, there's nothing wrong with
apache/mod_wsgi. i find unlikely that changing a good choice for
another equally good
On Tue, Jan 8, 2013 at 4:04 AM, Diederik van der Boor wrote:
> When you ask the mysql driver to connect to localhost, it will use the
> socket.
> To avoid this issue, better use 127.0.0.1.
which issue? what's wrong with using socket?
--
Javier
--
You received this message because you are sub
On Tue, Jan 15, 2013 at 5:27 AM, Isaac Perez
wrote:
> In a few words what I want to protect from is that an sql query could be
> passed in the main input text box and it could access other users passwords
> or information.
this simply doesn't happen with modern client libraries, as long as
you do
On Wed, Jan 16, 2013 at 6:54 AM, Fred Kingham wrote:
> Can you serve static files like you would in production from the django
> runserver?
it depends on what you mean by "like you would in production":
if you mean "separate processes for static files and web app" then no,
it can't since it's a
On Wed, Jan 16, 2013 at 5:46 PM, acat...@gmail.com wrote:
> The pizza could have the olive topping and onion topping, etc. But only one
> of each. Thanks for any help.
use an explicit 'through' table and set both foreignkeys as 'unique
together' on that table.
--
Javier
--
You received this
On Sat, Jan 19, 2013 at 3:03 PM, wrote:
> If I'm reading the session docs correctly, if I add the data to the session
> object, it'll get persisted, which I don't want.
i think you _do_ want it to be persisted.
remember that HTTP is a stateless protocol. to have it even slightly
scalable (anyt
On Sun, Jan 20, 2013 at 2:21 PM, Pankaj Singh wrote:
> As per docs, on_delete=models.PREVENT, prevents deletion of the
> referenced object by raising ProtectedError, a subclass of
> django.db.IntegrityError.
s/PREVENT/PROTECT/
--
Javier
--
You received this message because you are subscribed
On Sun, Jan 20, 2013 at 2:21 PM, Pankaj Singh wrote:
> If I your problem understood correctly, then `on_delete` option
> available in ForeingKey field[1] should be helpful in this case.
note that this doesn't use database-level restrictions, this behaviour
is emulated at the ORM level. IOW: any d
On Mon, Jan 21, 2013 at 10:03 PM, Jian Chang wrote:
> you can't do the transaction between two different databases.
i think the OP is talking about translation and not transaction. as
in translating the data from an old representation to the new one. a
better word might be migration.
of course
On Tue, Jan 22, 2013 at 11:54 AM, Sandeep kaur wrote:
> Yes, I also thought south will be helpful but when we need to do
> complete migration like old table is without foreign keys but new
> table has foreign keys etc. then I could not understand how to use
> south. Can you provide me some tutoria
On Thu, Jan 31, 2013 at 1:23 PM, Larry Martell wrote:
> This is something I found back in 07 when I was offered a chance to
> interview there. I searched for it again, and there are links to it,
> but they don't appear to work. My situation was the strangely similar
> to Peter's - I also got an un
On Mon, Feb 4, 2013 at 11:56 PM, mulianto wrote:
>
> if db schema change just do the schemamigration and migrate command in
> production when deploy the change. if you include in in prod, how about south
> db content? how you sync it with production site?
that's exactly how South is designed to
On Fri, Feb 22, 2013 at 10:48 AM, frocco wrote:
> Is PostgreSQL a better solution over MySQL?
that's a religion-loaded question but more and more people are
seeing the truth :-)
--
Javier
--
You received this message because you are subscribed to the Google Groups
"Django users" gro
On Tue, Feb 26, 2013 at 10:53 AM, Richard Brockie
wrote:
> Any advice on how to get the template to interpret the methods of
> myLinksClass?
try using myLinksClass as a mixin class
--
Javier
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
T
On Fri, Mar 8, 2013 at 5:07 AM, Roberto López López
wrote:
> I'd like to avoid having to concatenate them in the view and pass that
> as another parameter.
two ideas come to mind:
- itertools.chain() on the view. it's equivalent to concatenating,
but done lazily, so there's _very_ little overh
On Sun, Mar 3, 2013 at 8:16 AM, Asier Hernández Juanes
wrote:
> i have a remote Linux server with a Django application running in a nginx
> server
Django application's don't run in the nginx server. There must be
some other process running your app. Either uWSGI, gunicorn, FastCGI,
etc.
On Fr
On Fri, Mar 8, 2013 at 6:14 PM, Asier Hernández Juanes
wrote:
> When I type "locate *.fcgi" I get no results at all
that searches for files. no relation to processes.
to help you, first we need to know a bit about your deployment
architecture, specially which WSGI server you're using behind ng
On Fri, Mar 15, 2013 at 10:15 AM, Tom Evans wrote:
> I'm
> fairly certain that should not throw any change
> events or make the name of the file available to JS, for reasons of
> security.
it does generate change events, even if the value is a black box.
> Auto submitting the form would not al
On Tue, Mar 19, 2013 at 8:13 AM, frocco wrote:
> These required fields will not have data until a user checks out.
then they're not required from a database point of view.
regardless of that, they can be required on a form.
--
Javier
--
You received this message because you are subscribed t
On Tue, Mar 19, 2013 at 8:28 AM, frocco wrote:
> I am using forms.ModelForm
>
> So I would have to redo this as just a form.
or you could override some (most?) fields in the modelform.
--
Javier
--
You received this message because you are subscribed to the Google Groups
"Django users" group
On Tue, Mar 26, 2013 at 11:10 AM, Donnie Darko wrote:
> I was wondering if there there was a plan to change Django's ORM to support
> NoSQL databases?
since there's no such thing as "common NoSQL features", each datastore
would need its own modifications, so i think the common attitude is
that m
On Tue, Mar 26, 2013 at 6:49 PM, Russell Keith-Magee
wrote:
> On Wed, Mar 27, 2013 at 12:46 AM, Javier Guerra Giraldez
> wrote:
>>
>> since there's no such thing as "common NoSQL features", each datastore
>> would need its own modifications, so i think
On Mon, Apr 8, 2013 at 5:34 AM, Arun Prabhakar wrote:
> more can come in the future
that's reason enough to use Generic relations
--
Javier
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving ema
On Mon, Apr 8, 2013 at 8:43 AM, Javier Guerra Giraldez
wrote:
> On Mon, Apr 8, 2013 at 5:34 AM, Arun Prabhakar wrote:
>> more can come in the future
>
> that's reason enough to use Generic relations
(of course, much better would be if you can refactor your data
represen
On Tue, Apr 16, 2013 at 7:48 AM, Augusto Santos
wrote:
> I have alredy read part of the tutorial at django's site and read a little
> bit of the documentation.
first of all, do the tutorial. all of it. if you get stuck at any
point, ask for help here. but do it.
after that, it's good to read
On Mon, Apr 29, 2013 at 2:13 AM, Derek wrote:
> hat no one is actually using R in a production environment themselves (which
> is a little surprising to me).
well R itself is widely used in production... but the intersection
with Django is very small. (after all, if you write your own R
analysi
On Tue, Apr 30, 2013 at 2:22 PM, <7equivale...@gmail.com> wrote:
> "Redirect" Is that what you kids are calling it nowdays..
i found that word in RFC 1945, by Tim Berners-Lee and others, May
1996, where HTTP/1.0 was defined.
hardly a new term in web lingo.
--
Javier
--
You received this mess
On Fri, May 3, 2013 at 5:27 PM, Randa Hisham wrote:
> "\xD8\xB5\xD8\xB5\xD8\xB5"
print "\xD8\xB5\xD8\xB5\xD8\xB5".decode('utf8')
==> صصص
--
Javier
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop recei
On Mon, May 6, 2013 at 5:19 AM, Hélio Miranda wrote:
> I am making an application in django and mongodb and need to make a uplaod
> photos and videos but using mongodb's GridFS.
check django-storages, it has a MongoDB GridFS backend:
http://django-storages.readthedocs.org/en/latest/backends/mon
On Thu, May 9, 2013 at 11:55 AM, Amirouche Boubekki
wrote:
> I just released a new version of PythonScript, a "variant" of Python that
> compiles to javascript.
nice!
how does it compare with Pyjamas (http://pyjs.org/) ?
--
Javier
--
You received this message because you are subscribed to th
On Thu, May 30, 2013 at 3:18 PM, SeanJ wrote:
> as soon as those values come from the queryset I can't do math on them.
what have you tried?
--
Javier
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop re
On Fri, May 31, 2013 at 7:55 AM, Mike Dewhirst wrote:
> I don't know of anyone voluntarily using Windows as a Django production
> server platform.
not sure if it counts as "voluntarily", but if you _have_ to use MS
SQL Server, the DB client options on Linux aren't getting any better,
so soon the
On Sun, Jun 2, 2013 at 9:41 PM, 曹亚文 wrote:
> I have a url like this "http://abcde.com/data/#p1=123&p2=456";. How to get
> the 'p1' and 'p2'?
> I have spend over 4 hours on it. Be ware, not ".../?p1...", but ".../#p1..."
it's called the "fragment part", it identifies a fragment of a
resource. bro
On Thu, Jun 6, 2013 at 6:46 PM, Sam Walters wrote:
> find . -name '*.py' -exec grep -E -H -n 'import LocationAirfieldLookup' '{}'
> \; -print
far faster and better use of grep's capabilities:
grep -n 'import LocationAirfieldLookup' -R . --include '*.py'
--
Javier
--
You received this messa
On Thu, Jun 20, 2013 at 11:52 AM, Saif Jerbi wrote:
> I would like to implement multicolumns primary keys in django, i need to
are you proposing to implement multicolumn primary keys? or asking how
is it done? If the latter, i have bad news: they're not supported
(yet) in Django.
> implement a
On Sat, Jun 22, 2013 at 9:42 AM, Goran wrote:
> Try to use "safe" filter in which case table will be interpreted as HTML
or better, don't write html in Python. collect and organize the data
in the view functions/classes, and express into html in the template.
--
Javier
--
You received this m
On Wed, Jun 26, 2013 at 11:38 AM, Jason Arnst-Goodrich
wrote:
> Trying to modify the administration app can be hard. It's something I still
> stay away from because I feel once you start adding functionality that
> doesn't come working out of the box, you're better off building your own
> admin ap
On Fri, Jun 28, 2013 at 8:21 AM, Larry Martell wrote:
> I don't really understand what you mean by "create a function which is
> be called by view and your script."
AFAICT, your situation looks like this:
you have this:
def myview(request, maybesomeparams...):
does lots of things
On Fri, Jun 28, 2013 at 12:54 PM, Jason Arnst-Goodrich
wrote:
> Nobody's ever switched FROM Django TO PHP as far as I know :)
maybe not, but returns to PHP might be common.
still many people take PHPs ease of deployment as a failure of other
schemes (not realizing that creating a web applicatio
On Fri, Jun 28, 2013 at 1:16 PM, Gustavo Carneiro wrote:
> I don't know what you mean. You can use apache mod_wsgi to have apache
> directly serve Django web apps[1], same as PHP.
in most cases, apache out of the box will let you simply drop *.php
files anywhere you have static files and they'l
On Sat, Jul 6, 2013 at 3:48 AM, R. Eastbourne wrote:
> I would like these URLs assigned automatically.
i've done this once. crude, but works ok:
-- at the end of urls.py --
def _simpleurl(viewname, mod):
return url ('^%s/$'%viewname, getattr(mod, viewname), name=viewname)
urlpatt
On Sat, Jul 6, 2013 at 9:03 AM, Sergiy Khohlov wrote:
> you need to use webgl for client side
a popular JavaScript library for handling WebGL is three.js
(http://threejs.org). it supports several input 3D formats, VTK and
OBJ among them.
--
Javier
--
You received this message because you ar
On Sat, Jul 6, 2013 at 11:04 AM, Kamal Kaur wrote:
> But don't know how to implement it in my project to
> search in database. Do I need to keep a
> separate file? or what to do ?
not a separate file, but a separate field. either override the save()
method of your model, or connect to the pre_s
On Sun, Jul 7, 2013 at 10:47 PM, Larry Martell wrote:
> MeasDataTest is declared as:
>
> class MeasDataTest(TestCase):
>
> Why do I get "does not refer to a test"?
where do you define your test? AFAIR, it must be either in the
models.py, or a tests.py file in the same directory.
> Then I tried
On Mon, Jul 8, 2013 at 10:13 AM, Larry Martell wrote:
> I had seen the __init__ but I thought the tests had to be in the same
> dir as the models file.
the tests _module_ has to be in the same dir as the models module.
that means either a tests.py file, or a tests directory with an
__init__.py f
On Mon, Jul 8, 2013 at 4:14 PM, Larry Martell wrote:
> It appesars it's trying to add a row to django_content_type and it's
> already there. I tried not loading the fixture for django_content_type
> but I got the same error. These fixture files contain data I dumped
> from my real db, so I know it
On Mon, Jul 8, 2013 at 5:41 PM, Larry Martell wrote:
> So if you don't use dump files, what do you do? Load data row by row
> from within your test's setups?
no, i mostly write the fixture data by hand. except when i need a
series of records to cover a all (most?) combinations, then i generate
On Fri, Jul 19, 2013 at 4:26 AM, Tom Evans wrote:
> Because of this, I usually add a uuid field as a unique key, but leave
> id as the primary key.
same here.
but only for those tables whose records would be seen by the public.
kinda like 'slugs for non-textual objects'
--
Javier
--
You recei
On Sat, Jul 20, 2013 at 9:52 AM, Parin Porecha wrote:
> My question is - Should I do it via file storage, or should I save it in
> database ?
neither. syslog is a great tool, often overlooked, but built
specifically for this. not only it works right out of the box, but
it's very customizable "f
On Tue, Jul 30, 2013 at 10:48 AM, Jared Nielsen wrote:
> I started setting up Apache with mod_wsgi, but ran into innumerable config
> errors. After some Googling about, I found a number of suggestions to use
> lighttpd instead. Installed that and more troubleshooting. And what's this
> about gunic
On Mon, Aug 5, 2013 at 4:26 PM, Sean Whalen wrote:
> However, because the Django ORM uses the SERIAL data type to store the IDs
> in the DB; the IDs get larger, even when all existing records have been
> deleted. Eventually, I will run out of key space. What can I do to make
> Django produce small
On Mon, Aug 5, 2013 at 4:52 PM, Sean Whalen wrote:
> How can the models be configured to use bigserial? I know I could convert
> the tables myself, but that is not helpful for distributing the app.
https://docs.djangoproject.com/en/1.5/ref/django-admin/#sqlcustom-appname-appname
you can provide
On Tue, Aug 6, 2013 at 10:43 AM, Avraham Serour wrote:
> for development just use sqlite
+1
not only SQLite is totally installation-free and management-free, but
also its SQL parser is more compliant than MySQL, so there are fewer
surprises when going SQLite->PostgreSQL than the transition
MySQL
On Thu, Aug 8, 2013 at 9:22 PM, Larry Martell wrote:
> So all I can do is execute sql
> queries against it.
good news: that's all the ORM needs. :-)
still, i've found myself on some situations where getting the ORM to
work correctly wasn't worth the effort. mostly because of badly
configured
On Fri, Aug 9, 2013 at 8:53 AM, Larry Martell wrote:
> On Friday, August 9, 2013, Javier Guerra Giraldez wrote:
>>
>> On Thu, Aug 8, 2013 at 9:22 PM, Larry Martell
>> wrote:
>> > So all I can do is execute sql
>> > queries against it.
>&
On Tue, Aug 20, 2013 at 11:17 PM, Dig wrote:
> These 2 situation not 100% happened (but > 30%), I guess it caused some
> cache (django cache or mysql cache).
AFAIK, there's no "django cache". so i'm guessing some transaction
mess. maybe in that 30% cases some queries are done by different
proc
On Mon, Aug 26, 2013 at 5:34 AM, Renato Pontefice
wrote:
> I would start to learn it. I would start to use in a shared environment
while developing (or learning), you don't need a deployment
environment. if you have a working Python interpreter in your
machine, just do "python ./manage.py runse
On Tue, Sep 3, 2013 at 9:28 AM, Dig wrote:
> My django application is host in uwsgi, which is support timer(interval). So
> I insert my task parameters into database and execute tasks in timer
> handler.
note that uwsgi also has a spooler facility...
--
Javier
--
You received this message be
On Wed, Sep 4, 2013 at 12:28 PM, wrote:
> What were people using back in PHP days, cron all the way?
MQs have existed for a long time; but weren't so popular. I think the
Twitter problems were the wake-up call for most people.
in part because ghetto queues do work, and work well up to a point
On Thu, Sep 5, 2013 at 10:22 AM, James wrote:
> I started writing a new model for a client's website. The easiest analogy I
> can make is something like a menu, so I wrote just that (start simple, then
> add the hard stuff).
the main aspect to choose between "just a parent link" (Adjacency
List)
On Thu, Sep 5, 2013 at 10:50 AM, James wrote:
> Do I do so in the template, or in the defining view?
for anything more complex than a loop or a check, do it in the view.
--
Javier
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscri
On Fri, Oct 4, 2013 at 1:45 AM, Marc'h wrote:
> Thus, I'd like to know if there is any means to by-pass the automatic
> persistence mechanism when using collection attributes which are foreign-key
> based.
the ORM is a mapping to an SQL database, by definition that means
persistent storage. whi
On Fri, Oct 11, 2013 at 2:50 PM, Arnold Krille wrote:
> Create a virtual machine, either with microsofts virtualization or with
> virtualbox. Install linux in it, deploy your app as you are used to
> do.
while I agree that using Linux is the best solution, Django _does_ run
on windows without an
On Mon, Oct 14, 2013 at 12:17 PM, Muhammed TÜFEKYAPAN
wrote:
> I use digitalocean as a server. I upload my django project files on my
> server and start to setup. Made postgresql settings etc but I can't define
> my new project as a new service on nginx. How can I define my new projest as
> a serv
On Fri, Nov 1, 2013 at 12:45 PM, Daniele Procida wrote:
> In practice I use some tweaks (such as values_list) to speed this up, and
> caching, but the fundamental pattern is the same. It's slow, because there
> are 30 thousand BibliographicRecords.
the total number of records shouldn't matter.
On Tue, Nov 5, 2013 at 7:34 PM, George London wrote:
>
> I think it would be really helpful for new-comers to have a clear,
> opinionated guide to "commonly accepted (i.e. idiomatic)" deployment best
> practices. Or at least I know it would have really helped me.
wish you the best luck, hopefu
201 - 300 of 496 matches
Mail list logo