Re: Changing a constraint with live data

2011-01-04 Thread Thomas Guettler
I use south for migrations. I have done something like this with south, but with postgres not mysql. I don't know if mysql supports deferrable foreign key constraints. Thomas Sithembewena Lloyd Dube wrote: > Hi everyone, > > Happy 2011. > > I am having an interesting pro

ANN: dse 0.3.0 DSE - Delayed SQL Executor

2011-01-06 Thread Thomas Weholt
Just released a new version of DSE for django and would like to get comments, flames, whatever. http://pypi.python.org/pypi/dse/0.3.0 -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Massive insertion of records

2011-01-06 Thread Thomas Weholt
Just want to mention DSE which is especially made to solve problems with mass insert and/updates in django: http://pypi.python.org/pypi/dse/0.3.0 Regards, Thomas On Wed, Dec 29, 2010 at 1:22 PM, Derek wrote: > Thanks Craig - that explains it very clearly indeed ("textbook answer"

Re: ANN: dse 0.3.0 DSE - Delayed SQL Executor

2011-01-07 Thread Thomas Weholt
On Fri, Jan 7, 2011 at 9:40 AM, bruno desthuilliers wrote: > > > On 6 jan, 15:49, Thomas Weholt wrote: >> Just released a new version of DSE for django and would like to get >> comments, flames, whatever. >> >> http://pypi.python.org/pypi/dse/0.3.0 >> >

Re: ANN: dse 0.3.0 DSE - Delayed SQL Executor

2011-01-07 Thread Thomas Weholt
" % item.name item.save() it takes 9.6017057 seconds. It shows that the overhead of using the orm is significant ( we all knew that allready ). Regards, Thomas -- You received this message because you are subscribed to the Google Groups "Django users" group. To po

Error on Production Server (TemplateSyntaxError: Caught ImportError while rendering: No module named testapp)

2011-01-07 Thread Thomas M
nk that my server configuration causes the problem, because I've tried configuring the server with the help of several tutorials. And every try ended up with this error. Can somebody please help me with this issue? Much thanks in advance, Thomas M -- You received this message be

Re: Massive insertion of records

2011-01-07 Thread Thomas Weholt
On Fri, Jan 7, 2011 at 2:31 PM, Derek wrote: > Thomas > That looks potentially useful - can you please give an example (on the > webpage) of how to do a multi-row insertion?  I typically need to add > thousands of rows from existing spreadsheets - am using xlrd to read the > d

Re: Error on Production Server (TemplateSyntaxError: Caught ImportError while rendering: No module named testapp)

2011-01-07 Thread Thomas M
er Configuration above. Do you have any Ideas? BTW: the testapp doesnt do very much, it just returns a HttpResponse so I can test the server. Thanks, Thomas On 7 Jan., 14:39, Tonton wrote: > hello i am not sure if i can help you but from my config > use > > os.environ["DJAN

Re: Error on Production Server (TemplateSyntaxError: Caught ImportError while rendering: No module named testapp)

2011-01-07 Thread Thomas M
I have to correct myself: It still doesnt find "testapp", so nothing has changed :( On 7 Jan., 14:53, Thomas M wrote: > Ok, I've called the sittings file with "bellcher.settings" and moved > it into the projects root folder. > Now there are no Error Mesages

Re: Error on Production Server (TemplateSyntaxError: Caught ImportError while rendering: No module named testapp)

2011-01-10 Thread Thomas M
I've found the problem. The Configuration was correct. The only problem was that the user running the apache service couldn't access the app directory. :( On 7 Jan., 15:24, Thomas M wrote: > I have to correct myself: > > It still doesnt find "testapp", so nothing has

Re: model best practice

2011-01-13 Thread Thomas Weholt
helps you much.I still would like to see more documentation and examples on how to manage big project with large models. Regards, Thomas On Thu, Jan 13, 2011 at 1:45 PM, Олег Корсак wrote: > hello. My models.py file became very big and actually I can divide that > app for 2-3 different apps. B

Re: Django dev server issue

2011-01-13 Thread Thomas Steinacher
/local/Library/Frameworks/Python.framework/Versions/2.6/ lib/python2.6/socket.py", line 286, in flush self._sock.sendall(buffer) error: [Errno 32] Broken pipe I am now using http://www.newthink.net/2010/12/17/multi-threaded-django-dev-server/ which has solved the problem so far. Thomas O

Re: Django API efficient enough for filtering tens of millions of records?

2011-01-19 Thread Thomas Weholt
concept project more than anything else. It needs a good re-write, extensive testing and docs, but it might be helpful. Thomas On Wed, Jan 19, 2011 at 2:35 AM, Nick Arnett wrote: > > > On Tue, Jan 18, 2011 at 12:04 PM, Sithembewena Lloyd Dube > wrote: >> >> Hi all,

Re: What is a good app to use for a portfolio or images and videos?

2011-01-27 Thread Thomas Weholt
I`m currently implementing such a solution myself, but it`s nowhere near even alpha-state so I got noe code to share. Please let me know what you find. Regards, Thomas On Thu, Jan 27, 2011 at 2:30 PM, mongoose wrote: > Hi hi, > > Wanting to make a simple site that hosts images and vid

Re: Django model object allocation performance

2011-02-02 Thread Thomas Weholt
is much more efficient if you just need the values anyway. Regards, Thomas On Wed, Feb 2, 2011 at 10:28 AM, Daniel Roseman wrote: > On Tuesday, February 1, 2011 11:52:49 PM UTC, oyiptong wrote: >> >> Hello, >> >> I have been seeing a big performance degradatio

Re: Django API efficient enough for filtering tens of millions of records?

2011-02-15 Thread Thomas Weholt
FYI: release version 0.5.0 of DSE yesterday. Source is available at https://bitbucket.org/weholt/dse and pypi. Regards, Thomas Weholt On Tue, Feb 15, 2011 at 10:10 AM, Sithembewena Lloyd Dube wrote: > Hi Everyone, > > Coming back weeks later, to say thank you for your contributio

Re: Django + WebDAV

2011-02-15 Thread Thomas Weholt
Please post any findings on this subject or information about any projects you might start to solve/provide this to this group. This is very interesting. :-) I`ve made a ftpserver which authenticates logins using django user management, but a webdavserver would be even nicer. Thomas On Tue, Feb

Re: show a visual map of relationship between models

2011-02-19 Thread Thomas Rega
2011/2/19 bedros <2bed...@gmail.com>: > Hi all, > > Any one knows of a django app that shows the map of relationship > between models in my django ORM; I remember seeing something like that > in the past, but I forgot where. http://code.djangoproject.com/wiki/DjangoGraphviz good luck, TR -- You

ANN: dse 0.6.0 DSE - Delayed SQL Executor

2011-02-23 Thread Thomas Weholt
Just released a new version of DSE - delayed SQL Executor. Typical 10x speed gain when inserting or updating lots of records using DSE compared to using the django orm. http://pypi.python.org/pypi/dse/0.6.0 Comments and feedback appreciated. -- Mvh/Best regards, Thomas Weholt http

Re: How to merge querysets and sort it?

2011-02-25 Thread Thomas Rega
could you paste the definition of the models? I think there is the need of a relationship between 'Data_Siswa' and 'Users'. regards, TR 2011/2/22 : > I'm not so sure if I'm answering your question but there's a way you can > chain querysets. > In your views.py file import Q from django.db.mode

Re: How to merge querysets and sort it?

2011-02-25 Thread Thomas Rega
-key model will have access to a Manager that returns all instances of the first model. By default, this Manager is named FOO_set, where FOO is the source model name, lowercased. " good luck, TR 2011/2/25 Thomas Rega : > could you paste the definition of the models? I think there is the &

Re: ANN: Django 1.3 release candidate available

2011-03-04 Thread Thomas Guettler
Hi, all of my 211 unittests pass, no single failure. Thank you for this high quality framework. Thomas Güttler On 04.03.2011 07:00, James Bennett wrote: > Tonight we're proud to announce the first release candidate for Django > 1.3; if all goes well, the final release will happen

Making a dashboard for the admin

2011-03-08 Thread Thomas Weholt
I do this the correct way without messing with django source? Thanks in advance. -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Customizing how the elements are listed in admin change_list.html

2011-03-08 Thread Thomas Weholt
the template somehow and add my own template code to accomplish what I`m after. Any hint or thoughts on how to do this would be great, and I apologize in advance for adding the attachment. -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message because you are

Failed to build documentation (solved)

2011-03-10 Thread Thomas Guettler
refix=$HOME Sphinx Without -U easy_install copied the old version from /usr/lib into my home directory. HTH, Thomas Güttler -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de -- You received this message because you are subscribed to the Google G

Re: Extending admin index.html

2011-03-12 Thread Thomas Weholt
tried them both and still want to now how to implement/override both the admin/index-template and the related view. Any information you might have related to this is very interesting. Please post a reply to this thread. Regards, Thomas On Sat, Mar 12, 2011 at 4:14 PM, Lior Sion wrote: > Hi, >

Logging visitors/requests and showing it all in a nice report?

2011-03-21 Thread Thomas Weholt
Is there an app for logging visitors with a nice report, like a report showing number of visitors for a specific page, users with a specific browser/OS etc? -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- You received this message because you are subscribed to the Google Groups

Re: Logging visitors/requests and showing it all in a nice report?

2011-03-21 Thread Thomas Weholt
Ok, but I want the report in django admin, nicely formatted, with shiny icons, charts and pies ;-) I was wondering if I should make a simple middleware to handle request-logging and add a few views to summarize things like os, browser, visitors addresses etc. Thomas On Mon, Mar 21, 2011 at 2:27

Creating this query with django Models

2011-04-09 Thread Thomas M
tus_id AND servertool_currentplayers.player_id = servertool_player.guid WHERE servertool_status.id = ( SELECT MAX(servertool_status.id) FROM servertool_status ) GROUP BY guid; is it somehow possible to get this with the django models objects? thanks Thomas -- You received this message becau

Re: Creating this query with django Models

2011-04-11 Thread Thomas M
hm, I'm not quiet sure what you mean by this. Could you write an example please? Thanks,Thomas On 9 Apr., 16:03, "Martin J. Laubach" wrote: >   Let's see... > >   Since there is no aggregate on your outer select, the GROUP BY is > basically reduced to a DISTIN

Can give each user a specific folder to upload to using an ImageField?

2011-04-12 Thread Thomas Weholt
I see from the docs that ImageField takes an param called upload_to. I want to put uploaded files into a specific folder for that specific user uploading the image. And the target folder is NOT in the media root. Any tips on how to achieve that? -- Mvh/Best regards, Thomas Weholt http

Re: Django: How to customize the admin form for specific model

2015-01-24 Thread Thomas Rega
You could get this things done by customization of the corresponding admin template: templates/admin/change_form.html This can be done per app and per model: https://docs.djangoproject.com/en/1.7/ref/contrib/admin/#templates-which-may-be-overridden-per-app-or-model Good Luck TR 2015-01-24 20:31

Middleware + Transactions

2015-01-30 Thread Thomas Güttler
view transaction? Regards, Thomas Güttler -- Thomas Güttler http://thomas-guettler.de/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django

Custom model field and custom widget

2015-01-30 Thread Thomas Weholt
Hi, I need to create a custom django model field, a varchar(10) field which has a calculated value set on save on the model using it and then never changed. This should happen automatically. This field should appear as hidden or read-only in forms and it would be nice to handle the render outp

App for storing ChangeLogs in database

2015-02-06 Thread Thomas Güttler
eedback: What do you think? How do you handle your ChangeLogs. PS: Our customers are normal (non programmers) people. They don't want to see diffs or commit messages they don't understand. -- Thomas Güttler http://thomas-guettler.de/ -- You received this message because you are sub

Re: models, peeking to next record - maybe

2015-02-08 Thread Thomas Rega
Alternatively use the 'latest()' method of the django ORM to figure out which is the latest event: https://docs.djangoproject.com/en/1.7/ref/models/querysets/#latest 2015-02-08 2:05 GMT+01:00 Vijay Khemlani : > The direct solution would be something like this in your view > > events = Event.object

Re: use apache instead of server by default

2015-02-09 Thread Thomas Rega
Hi, You have to tell the apache where to find the wsgi file of your project. Here you can find informations about the configuration of apache/modwsgi: https://code.google.com/p/modwsgi/wiki/InstallationInstructions 2015-02-08 23:20 GMT+01:00 Thierry Granier : > Hello > > i have installed python3

Re: App for storing ChangeLogs in database

2015-02-09 Thread Thomas Güttler
ation needs to done by a human. It can't be automated, and I think it is worth the effort. Regards, Thomas Güttler -- Thomas Güttler http://thomas-guettler.de/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

cache.set(key, timeout=0)

2015-02-10 Thread Thomas Güttler
-usage I don't want to put a lot of "if default_cache_timeout==0: " into my code. It would be nice if django would support this. This would make my code simpler. Does cache.set(key, timeout=0) do no caching at all? If yes, shouldn't this be stated in the docs explicitl

Re: html response to be loaded in a div

2015-02-18 Thread Thomas Rega
Hi, may be that this example(s) help: https://godjango.com/blog/working-with-json-and-django/ good luck 2015-02-18 21:37 GMT+01:00 João Marques : > This is what is being sent to the view: > > %5B%5B%5B%275E%27,%20%2710A%27,%20%278D%27%5D,%20%5B%278B%27,%20%2711B%27,%20%2712G%27%5D,%20%5B%278C%27

Re: How to handle model constants

2015-02-22 Thread Thomas Rega
Hi, I do not know if this approach is better but I am using https://pypi.python.org/pypi/django-enumfield/ for such kind of fields. Just my 2 cents Good luck 2015-02-23 7:23 GMT+01:00 Frankline : > Hi all, > > I am getting confused regarding the use of constants and would be keen to > know how

Re: [1.7] Django Admin - Secondary, extended user-admin

2015-03-04 Thread Thomas Rega
https://github.com/jpulgarin/django-tokenapi ? 2015-03-02 17:47 GMT+01:00 Flemming Hansen : > Hi all, > > I need to set up a passwordless login system using tokens, and I need to > manage it from the admin backend. > > Simplified, the tokens need to be set for a user (one user, one authenticate >

Re: Global access to request.user

2015-03-27 Thread Thomas Güttler
p inside OOP python code. The method needs to know which user is logged in to return the correct result. Of course I could always return a hyperlink. And users which don't have the permission will see the permission denied page. But this is not user friendly. Can you understand this use case

Re: Global access to request.user

2015-04-01 Thread Thomas Güttler
the "passing state around being ugly", because the code is already architecturally flawed and inherently ugly to start with. Also, abusing globals starts to get real ugly when you introduce co-routines and overall makes for much less readable code (imho). Yes, I think co-routines make thi

Re: Global access to request.user

2015-04-01 Thread Thomas Güttler
Am 27.03.2015 um 19:05 schrieb Stephen J. Butler: On Fri, Mar 27, 2015 at 10:30 AM, Thomas Güttler wrote: You have an instance method to render one row of a search result (a custom paginator). One column of this row displays a link. Some users are allowed to follow the link, some are not

setup.py for project?

2015-04-01 Thread Thomas Güttler
e sense for the project? How do you manage your projects (not apps)? Regards, Thomas Güttler -- Thomas Güttler http://thomas-guettler.de/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receivin

Re: setup.py for project?

2015-04-02 Thread Thomas Güttler
vourite book seller. There are many books about this topic. Which one do you recommend? Regards, Thomas Güttler -- -- Thomas Güttler http://thomas-guettler.de/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: How to prevent label wrap in Django Administration

2015-04-19 Thread Thomas Lockhart
On 4/19/15 4:21 AM, Bernd Wechner wrote: I'm just playing around with Django and have cut a simple model and all is working fine. The Django administration tool works a charm, and I can move onto some views and forms. But what puzzles me immensely is why editing a tuple looks like this (with

CKEDITOR not working on certain models

2015-04-21 Thread Thomas Weholt
unning in the browser, handling the exact same html as before should suddenly stop working because I added some fields using an abstract model with fields not even being rendered on the page which has now stopped working. Any hints? -- Mvh/Best regards, Thomas Weholt http://www.weholt.org -- Yo

Two projects fail to import the same main app when I turn on both in Apache

2015-05-05 Thread Thomas Levine
Hi, For like the first time ever I want to make complicated websites, so using Django finally seems like a good idea. And it is! All the small building blocks that I had never thought of are already here. Anyway, the part that's relevant to my present concern is that I haven't deployed Django many

Re: Two projects fail to import the same main app when I turn on both in Apache

2015-05-07 Thread Thomas Levine
Indeed! Thanks Tom On 05 May 13:49, Tom Evans wrote: > On Tue, May 5, 2015 at 10:32 AM, Thomas Levine <_...@thomaslevine.com> wrote: > > Hi, > > > > For like the first time ever I want to make complicated websites, > > so using Django finally seems like a good i

How do I debug 400 errors that arise from turning off debug mode?

2015-05-07 Thread Thomas Levine
Hi, Every page on my site returns a status code of 400 when I set `debug = False` in my settings file, and this doesn't happen if I switch it to `True`. How can I determine what is going wrong? I have not managed to find it in the Django loggers (through email or through a custom logging facility

Re: JSON data

2015-05-07 Thread Thomas Levine
> which part is slow? the API, the processing of the JSON, or the > display? And here's how you can check that. Insert the following line between the different steps that Tim itemized, print(time.perf_counter()) subtract the numbers that get printed, and then determine which step is slow.

Re: Sending Data from client side(another computer) to Django(my computer) using Socket library

2015-05-07 Thread Thomas Levine
On 07 May 16:00, steve malise wrote: > The error comes when i runserver and send data from another computer to > django,then i get this "code 400, message Bad request syntax ( data from > another computer)" This is because On 07 May 11:42, Tom Evans wrote: > Eurgh. Your hand-crafted HTTP request

Re: How do I debug 400 errors that arise from turning off debug mode?

2015-05-07 Thread Thomas Levine
;http://localhost:8000/admin/login/?next=/admin/' Unfortunately, while email works with the development server, it does not work on the production server, and I have yet to figure out why. On 07 May 13:43, Thomas Levine wrote: > Hi, > > Every page on my site returns a status code of

Re: Two projects fail to import the same main app when I turn on both in Apache

2015-05-07 Thread Thomas Levine
On Tue, May 5, 2015 at 10:32 AM, Thomas Levine <_...@thomaslevine.com> wrote: > I have two sites that I want to host on the same computer. > I have root access on this computer. The two sites are called > "dadaportal", which is on https://thomaslevine.com, and "

Re: Django Https issue

2015-05-12 Thread Thomas Levine
I searched the internet for this error message On 11 May 20:41, zichuanxi...@163.com wrote: > *use django shell with uwsgi:* > *I get an error:*** > > and ca

How do I display a map with GeoDjango models?

2015-05-13 Thread Thomas Levine
I have multiple GeoDjango models (http://dada.pink/scott2/map/models.py) and want them to be layers on the same map. Surely there's a magic way to specify this. What do I do? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from t

Re: How do I display a map with GeoDjango models?

2015-05-14 Thread Thomas Levine
more detail on the django-leaflet site > (e.g. https://github.com/makinacorpus/django-leaflet#default-tiles-layer ) > > > On Wednesday, 13 May 2015 21:36:13 UTC+2, Thomas Levine wrote: > > > > I have multiple GeoDjango models (http://dada.pink/scott2/map/models.py) &

Re: how shall I built online address book using Django

2015-05-23 Thread Thomas Rega
http://lmgtfy.com/?q=django+for+beginners Good Luck 2015-05-22 17:53 GMT+02:00 Preeti : > I donot want that people do homework for me or create the app for me. > > I referred to that djangoproject.com tutorials for two days, but for > creating the app I didnt find it much resourceful. > > I want

Installation OPEN VOLUNTEERS

2015-05-23 Thread Thomas Tetelin
Bonjour a tous, https://github.com/lrivallain/openvolunteer.git Je suis débutant en développement logiciel et j'aimerais installer cette application sur mon PC . Elle me serait tres utile car je m'occupe d'un festival de musique et je compte bien utiliser cette application. Seulement, je ne c

Re: All Urls lead to home.html

2015-06-02 Thread Thomas Murphy
Hi Jariel, What URI are you accessing to get to your admin page? Can you show us your urls.py? Best, Thomas On Tue, Jun 2, 2015 at 1:46 PM, Jariel Arias wrote: > For some reason every time I try to go to my admin page it takes me back > to my home.html which is just : > &g

Re: can i use sqlite for big project?

2015-06-26 Thread Thomas Lockhart
On 6/25/15 7:08 AM, Arindam sarkar wrote: i need to develop a job portal . is there any problem if i use sqlite ? coz i am having problem to setup mysql or postgresql . please help. As others have suggested, use Postgres from the start. Spend a few minutes to understand the setup; it will be wor

best way to use django

2015-06-29 Thread Jason Thomas
I want to create twon sites, the first will be a tutorial/blog/projects site (how to's) that I can post different web apps to be used by public users logged into the site and the second a dating site. do I need to know djangular (as in is it to much for what I want to do?) or should I just use s

Re: best way to use django

2015-06-29 Thread Jason Thomas
Which tutorial do you suggest? Which is the best as far as getting down to the nitty gritty (strieght to the point) for what I'm trying to do? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving ema

Re: best way to use django

2015-06-29 Thread Jason Thomas
Thank You Sir!!! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@goo

Re: best way to use django

2015-06-29 Thread Jason Thomas
Thanks to you to my man I'm on it!!! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send e

Re: Development Server Ignores IP-address Parameter

2015-07-16 Thread Ted Thomas
Jonathan, anotherdjangonewby, Thanks. I tried both suggestions, but there in no change in behavior. No matter what I do, the development server only takes requests at 127.0.0.1:8000. I am including my settings.py file below ( with altered secret_key): """ > Django settings

How to use Python Requests Module to upload images to Django Application?

2015-07-23 Thread Ted Thomas
I am developing a django application that primarily uses web browsers to upload scientific data that includes some image files. Currently, the application works fine when Firefox or Chrome are used. Both images and other data are correctly uploaded. Occasionally users need to upload larger am

Re: How to use Python Requests Module to upload images to Django Application?

2015-07-23 Thread Ted Thomas
My Python code started working after I changed on line. Changing: files_dct = {filename:fobj} to: files_dct = {('photo',(filename, fobj,'image/jpg'))} Now it works. My conjecture about the need for different HTTP-headers was wrong. The working code has not changed the headers receive

Re: Django Database Switching Issue

2014-07-11 Thread Thomas Lockhart
On 7/11/14 9:27 AM, G Z wrote: So I tracked down an issue, whenever I change my database from development to production which have the same exact schema it still uses the data from development although my settings.py file is set to the production database and it even swtiches the user I have to

Re: Django Database Switching Issue

2014-07-11 Thread Thomas Lockhart
On 7/11/14 11:30 AM, G Z wrote: Thomas, I have no cache setup, Django is all set to default right now there is no local_settings file I have actually changed every settings file that exist for django to match my production db yet still the wrong data. Well, you will have to give more details

Re: urls not maching

2014-07-13 Thread Thomas Lockhart
On 7/13/14 7:19 AM, ngangsia akumbo wrote: no am not using two slashes, i just want my block links to output the content details but i keep having the error above i need some help here You are getting some help here. The details you have provided so far seem to indicate that you are providing a

Re: Newbie: Complete environment setup(virtualenv, pip, eclipse, git...)

2014-07-19 Thread Thomas Lockhart
On 7/19/14 6:41 PM, Martin Torre Castro wrote: Hello, my name is Martin and I'm a computer engineer from Spain. I'm going to start a new project with a colleague and I decided to use Django because we searched for free opensource tools and I'm in love with Python. We have made a couple of tu

Model not appearing in django admin

2014-08-12 Thread Thomas Brightwell
I am trying to manage the data in a model through the default django admin site. I have several apps, which have all been included in INSTALLED_APPS, and I am registering the model with the default django admin. I have included the django admin app in urls.py and have verified that I am the sup

Re: Model not appearing in django admin

2014-08-12 Thread Thomas Brightwell
g the model url manually after logging to the > admin interface, in your case it would be > > http://[host name]:[port]/admin/django_admin/webapp/retailer > > don't forget to set your DEBUG to True in the settings.py and if you are > restart your server if you are running

Re: Model not appearing in django admin

2014-08-12 Thread Thomas Brightwell
Collin, I'm running django v1.7c1 On Wednesday, 13 August 2014 02:50:14 UTC+1, Collin Anderson wrote: > > Do you have admin.autodiscover() in your urls.py? (assuming you're not > using version 1.7) > -- You received this message because you are subscribed to the Google Groups "Django users" g

Re: Model not appearing in django admin

2014-08-12 Thread Thomas Brightwell
e non inclusion of certain urls depending on the order in > which they appear in the urls.py file. Can you comment the other ones and > just keep > > url(r'^admin/django_admin/', include(admin.site.urls)) > > to eliminate this possibility. > > On Wednesday, Aug

Warnings instead of only errors in Django Forms

2014-08-13 Thread Thomas Güttler
page won't help me. I need a python solution (without templates), since the form rendering is done by a third party library. [1] http://stackoverflow.com/questions/2270550/warnings-or-even-info-messages-instead-of-only-errors-in-django Regards, Thomas -- Thomas Güttler http://t

Re: Model not appearing in django admin

2014-08-13 Thread Thomas Brightwell
Collin, Thanks for the help. I updated my admin.py with this (also been trying other variations of the register): from django.contrib import admin from .models import Retailer @admin.register(Retailer) class RetailerAdmin(admin.ModelAdmin): pass print 'foo' raise Exception() Restarted my

Re: Model not appearing in django admin

2014-08-13 Thread Thomas Brightwell
Yes, have an __init__.py file. And yes, works fine importing. bash-3.2$ ./manage.py shell Python 2.7.5 (default, Mar 9 2014, 22:15:05) In [1]: import webapp.admin In [2]: webapp directory listing: bash-3.2$ ls __init__.py admin admin.pyc item migrations models.pyc templates tests view

Re: Model not appearing in django admin

2014-08-13 Thread Thomas Brightwell
Ok, figured it. I have an admin folder as well as admin.py so they're conflicting. Removing it solved the issue and Retailer now appears in the admin interface. Thanks for the debugging steps! Cheers, Tom On Wednesday, 13 August 2014 14:38:51 UTC+1, Thomas Brightwell wrote: > >

Re: [ANNOUNCE] Django 1.7 released

2014-09-03 Thread Thomas Leo
Keep up the great work! On Tuesday, September 2, 2014 6:13:21 PM UTC-4, James Bennett wrote: > > Django 1.7 is now available: > > https://www.djangoproject.com/weblog/2014/sep/02/release-17-final/ > > Alongside this are bugfix releases for 1.4, 1.5 and 1.6. The bugfix 1.5 > release is the final r

Re: Install Django Apps via Admin Interface

2014-09-12 Thread Thomas Güttler
INSTALLED_APPS, but also adding configurations to settings.py, running syncdb/migrate and reloading the instance. I guess django experts have a good solution for this small technical problem. Thomas -- Thomas Güttler http://thomas-guettler.de/ -- You received this message because you a

Django Tutorial #5 Testing: return Poll.objects.filter( SyntaxError: 'return' outside function

2014-09-16 Thread Thomas George
d return False for polls whose pub_date* *is older than 1 day* *"""* *old_poll = Poll(pub_date=timezone.now() - datetime.timedelta(days=30))* *self.assertEqual(old_poll.was_published_recently(), False)* *def test_was_published_recently_with_

Re: Install Django Apps via Admin Interface

2014-09-17 Thread Thomas Güttler
would work without getting added to INSTALLED_APPS. It would be nice if such a sub architecture would be outside of django-cms, to make it more reusable. Thomas -- Thomas Güttler http://thomas-guettler.de/ -- You received this message because you are subscribed to the Google Groups "Dja

Config: DB or git?

2014-09-29 Thread Thomas Güttler
, since version control is great for files, and not so good for databases, but I think it is the way to go. What do you think? Thomas -- Thomas Güttler http://thomas-guettler.de/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To u

Re: Config: DB or git?

2014-09-29 Thread Thomas Güttler
ink. Unfortunately the feature "data store" is not evaluated up to now. But I created a feature request: https://github.com/pydanny/djangopackages/issues/293 Thomas -- Thomas Güttler http://thomas-guettler.de/ -- You received this message because you are subscribed to the Google Groups &

Exceptions in signal handlers pass silently

2014-09-30 Thread Thomas Güttler
I just discovered, that exceptions in signal handlers pass silently. Is there a way to not silently ignore errors? >>> import this -- Thomas Güttler http://thomas-guettler.de/ -- You received this message because you are subscribed to the Google Groups "Django users" gr

Including JS/CSS in reusable widget library

2014-09-30 Thread Thomas Güttler
above pages are good. But it is even better if there is a common way how to handle this in the django world. Thomas -- Thomas Güttler http://thomas-guettler.de/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: Exceptions in signal handlers pass silently

2014-10-02 Thread Thomas Güttler
found this solution: {{{ from django.dispatch import Signal Signal.send_robust = Signal.send }}} Source: http://giovanni.bajo.it/post/47207612849/djangos-signal-send-robust-is-broken-by-design -- Thomas Güttler http://thomas-guettler.de/ -- You received this message because you are subscribed

Re: Including JS/CSS in reusable widget library

2014-10-02 Thread Thomas Güttler
oday. But maybe some else does. Thomas -- Thomas Güttler http://thomas-guettler.de/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubsc

Re: Config: DB or git?

2014-10-02 Thread Thomas Güttler
ook at the data which gets configured here? I love git like most programmers love their version control system. But for most stuff config in DB is much better. example: INSTALLED_APPS Wouldn't it be really cool if you could add an app by pressing a button? Thomas -- Thomas G

Re: Config: DB or git?

2014-10-02 Thread Thomas Güttler
Am 02.10.2014 um 14:11 schrieb Tom Evans: On Thu, Oct 2, 2014 at 12:21 PM, Thomas Güttler wrote: Am 01.10.2014 um 14:56 schrieb Collin Anderson: If you're a programmer or sysadmin, configuration should be done in files. If you're not a programmer or sysadmin, it should be d

Re: ANN: Django website redesign launched

2014-12-18 Thread Thomas Leo
The new Design looks great! Awesome job! One thing I really like about https://docs.python.org/3/ is the ability to show/hide the side bar. The new design features a very large sidebar, being able to toggle it would be awesome. Also as previously mentioned trac doesn't look right yet. On Tues

Re: Can't save input to database

2014-12-30 Thread Thomas Lockhart
On 12/30/14 11:42 AM, Ronis wrote: Hi guys, I can't save the input from a custom form to database. I don't know what I am missing. I'm not sure either. But the html form you posted looks a *lot* like any template you might find in a django deployment. If it were me I'd look harder at just tying

Model Design: Adding Params to Relationship FIelds

2013-11-20 Thread Thomas Murphy
Hi all, I'm working on a hour-reporting system. Each Project has many Users, and each User has many Projects(These are established and working nicely). My design issue is this: How can I assign each User an IntegerField "Hours" on each Project they are assigned to? This Integer Field is personal

Re: Model Design: Adding Params to Relationship FIelds

2013-11-21 Thread Thomas Murphy
Thanks Daniel! I try to always RTFM, but this slipped by me. On Thu, Nov 21, 2013 at 5:32 AM, Daniel Roseman wrote: > On Wednesday, 20 November 2013 22:49:28 UTC, Thomas Murphy wrote: >> >> Hi all, >> >> I'm working on a hour-reporting system. >> >>

Re: Errors on Django Tests Tutorial 5, how to fix.

2013-12-04 Thread Thomas Lockhart
On 12/4/13 9:18 AM, Matt Schloepp wrote: I'm running Django on Windows with PostgreSQL database. I'm in tutorial 5 and have copy/pasted the code after it's initial failure. I've been following the tutorials to this point, with only a little side experimentation, and everything has been working.

Re: Does not generate the password hash my User

2013-12-05 Thread Thomas Lockhart
On 12/5/13 3:55 PM, Ricardo wrote: Hi Thomas. Even entering rende_value = False does not. The password keeps popping up as text. did not quite understand how that password1 is inserted before the check password2. I could not see this problem. You have found the limits of my knowledge. If it

<    5   6   7   8   9   10   11   12   >