Re: Overriding Model's save method: error propagation

2009-01-14 Thread Markus
/6845 http://wiki.github.com/HonzaKral/django/model-validation Cheers Markus --~--~-~--~~~---~--~~ 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 u

FileField FilePathField hybrid...?

2008-09-15 Thread Markus
would not make sense. Is there another way of adding this feature, maybe by hand? I'm sure there is, but I'm pretty new to Django and would be grateful for hints. Markus --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Re: FileField FilePathField hybrid...?

2008-09-16 Thread Markus
Ok - thanks for clarifying this. Markus --~--~-~--~~~---~--~~ 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 g

Merging results from two tables

2009-01-31 Thread Markus
;: "select B.field1 from B ...", 'field2': 'select B.field2 from B ..."}) This quickly becomes clumsy as the number of fields in table B increases. There must be a better way? As I couldnt find anything in the documentation, I would appreciate a nudg

Re: Merging results from two tables

2009-02-01 Thread Markus
Thanks, that did the trick!! On Jan 31, 6:07 pm, Daniel Roseman wrote: > On Jan 31, 12:27 pm, Markus wrote: > > > > > Hi > > > just starting to use Django, am stuck with the following problem: > > > Given > > > class A(models.Model): > &g

Form for sending emails

2010-07-20 Thread markus
se both on their own. However, I have problems putting it together. Any help would be great! Thank you very much! Kind regards markus -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@go

stream (large) files from the back-end via Django to the user?

2010-08-11 Thread Markus
files directly from the distributed file system to the user? Cheers, Markus -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email t

Re: stream (large) files from the back-end via Django to the user?

2010-08-23 Thread Markus
orrectly? In this case maybe you can elaborate a little bit? best wishes & Thanks, Markus -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from thi

Re: stream (large) files from the back-end via Django to the user?

2010-08-23 Thread Markus
on is if this could be done efficiently? If "yes", how can it be done? Thanks! Markus -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from t

Re: stream (large) files from the back-end via Django to the user?

2010-08-24 Thread Markus
On Tue, Aug 24, 2010 at 1:28 AM, Steve Holden wrote: > Consider using Apache or Nginx to deliver this content much as you would > deliver static content from disk. You don't want Django-users in that loop > if you are interested in maximum throughput. > > But the question is how to get the conten

Re: stream (large) files from the back-end via Django to the user?

2010-08-24 Thread Markus
On Tue, Aug 24, 2010 at 2:16 AM, Eric Chamberlain wrote: > > Yes. The problem is that currently our CDN is based on Hadoop which serves > us really well for internal purpose. We can't make it accessible from the > outside because at the moment Hadoop is missing some crucial security > features. S

two or more db connections

2005-08-16 Thread markus
hi i'm new to django and i have to build an app on an existing data layout. is there a way to use more than one db connection in a django project? thanks markus

Re: Overriding Model's save method: error propagation

2009-01-14 Thread Markus T.
David, for me, these two links did the trick: http://docs.djangoproject.com/en/dev/ref/contrib/admin/#adding-custom-validation-to-the-admin http://docs.djangoproject.com/en/dev/ref/forms/validation/#ref-forms-validation However, validation as described in the Django docs does not happen in the m

Re: Overriding Model's save method: error propagation

2009-01-14 Thread Markus T.
if x > y: should read except: of course... --~--~-~--~~~---~--~~ 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, se

form for two models - reuse fields generated by modelform

2009-01-29 Thread Markus Bertheau
odelFields? Thanks Markus Bertheau --~--~-~--~~~---~--~~ 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, s

Filter by ForeignKey reference??

2009-02-02 Thread Markus T.
Country) If I want to create a list of all countries that are actually referenced (i.e. used by at least one Profile entry), how would I code that in Django? Maybe something like (of course this is rubbush): referenced_countries = Country.objects.exclude (profile__country__isnull=True) Thanks

Re: Filter by ForeignKey reference??

2009-02-03 Thread Markus T.
Thanks for your reply! Your approach returns a list of dictionaries (or tuples if values_list () is used). Do you know of a straight forward way that returns a list of model objects, like filter() or all()? (I mean something smarter than looping the returned list of tuples and creating a new list

Re: Filter by ForeignKey reference??

2009-02-10 Thread Markus T.
That's it - thanks a lot!!! --~--~-~--~~~---~--~~ 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 djang

Re: Scientific Data Frontend with Django

2009-08-03 Thread Markus Becker
this and see whether it could be merged into Django. BR, Markus On Jun 18, 10:28 pm, jordan wrote: > I've been wanting to do a similar kind of project for a long time. > Just haven't found anyone else who was interested. > > So, if anyone wants to try to build somethin

Re: Re: Scientific Data Frontend with Django

2009-08-04 Thread Markus Becker
> Hello, > > Markus Becker schrieb: > > Hi, > > > > last week I started something in this direction. Similarly to admin.py > > (which describes how to administrate the data) there is a graph.py, > > which describes how to graph the data. It is still very

Re: Django + QT4

2009-10-01 Thread Markus Stumpf
On Wed, Sep 23, 2009 at 01:59:35PM -0700, Gustavo Henrique wrote: > Is possible use django with qt4 for desktop apps? > if yes, where I can find about this? anyone have a example to study? A bit late maybe, but I stumbled over this today: http://www.conceptive.be/~downloads/camelot/doc/sphinx

Re: First tutorial - Not off to a good start :(

2009-10-04 Thread Markus Stumpf
On Sun, Oct 04, 2009 at 10:43:11AM -0700, Leke wrote: > I still seem to have no luck running the script though... > > l...@leke ~/Projects/cms/django $ /usr/lib/python-django/bin/django- > admin.py startproject mysite > bash: /usr/lib/python-django/bin/django-admin.py: Permission denied The scri

Binary Post Data to ImageField

2009-12-21 Thread Markus T.
edge to find a satisfying solution... Thanks! Markus -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr.

How do I get tracebacks printed to terminal?

2010-11-23 Thread Markus Barth
I am using quite a lot of asynchronous calls for updating a page. The problem is that this way you never see a traceback. In turbogears the development server prints all tracebacks to the terminal. Is there any way to get a similar behaviour with django? -- You received this message because you a

Re: How do I get tracebacks printed to terminal?

2010-11-23 Thread Markus Barth
I have just found a post from beginning of last year pointing out that this feature got "lost" during the transition from 0.9 to 1.0. I have digged a bit through the code but must admit that fixing this definitely should be done by someone who is familiar with django internals. Tracebacks are one

Re: How do I get tracebacks printed to terminal?

2010-11-23 Thread Markus Barth
On 23 nov, 23:19, Javier Guerra Giraldez wrote: > On Tue, Nov 23, 2010 at 3:48 PM, Markus Barth > > wrote: > > I am using quite a lot of asynchronous calls for updating a page. The > > problem is that this way you never see a traceback. In turbogears the > > de

Re: How do I get tracebacks printed to terminal?

2010-11-23 Thread Markus Barth
On 23 nov, 23:33, Markus Barth wrote: > On 23 nov, 23:19, Javier Guerra Giraldez wrote: > > > On Tue, Nov 23, 2010 at 3:48 PM, Markus Barth > > > wrote: > > > I am using quite a lot of asynchronous calls for updating a page. The > > > problem is that

Re: Binary Post Data to ImageField

2009-12-28 Thread Markus T.
IOErrorEvent.IO_ERROR, uploadFault); loader.load(req); To all you Django gurus out there: is this a sensible approach? Thanks and happy holidays! Markus -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send ema

RE: How about the Django book progress

2006-08-17 Thread Markus Jais
hi here is the website of the publisher: http://www.apress.com/book/bookDisplay.html?bID=10176 according to amazon.com http://www.amazon.com/gp/product/1590597257/sr=8-1/qid=1155812128/ref=pd_bbs_1/104-8182836-5310365?ie=UTF8 it will be published october 30th 2006. Markus --- Vikrant

Re: migrations not created for foreign key when primary key type is changed

2022-09-03 Thread Markus Holtermann
This is expected and by design. Because in the model where you define the foreign key, you also don't define its type. The type is automatically resolved through the column type from the target model. Cheers Markus On Fri, Sep 2, 2022, at 10:39 AM, Manasvi Dobariya wrote: > I have

Re: Support of django 3.2

2022-11-01 Thread Markus Holtermann
Yes, until April 2024: https://www.djangoproject.com/download/ On Tue, Nov 1, 2022, at 3:54 PM, Lakshyaraj Dash wrote: > Is django 3.2 still supported? > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group

Re: online transactions with python

2012-01-31 Thread Markus Gattol
https://github.com/agiliq/merchant the braintree backend is good, so is stripe. Depends on your type of transaction and the pricing you get. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://group

geocoding - getting latlng from JavaScript, send to server, store into MongoDB

2012-07-01 Thread Markus Gattol
Hi folks, I am using https://github.com/hmarr/mongoengine and Django 1.4 for my current project. MongoDB allows for easy geo queries e.g. you have one latlng and want all other points in your database within a certain radius... all that's fine and working already. Now I want to use Google Map

Re: geocoding - getting latlng from JavaScript, send to server, store into MongoDB

2012-07-03 Thread Markus Gattol
Answering to my own question: this is what I ended up using http://dajaxproject.com/maps/ to send coordinates (latlng) back to the server (from the users browser) and then store it in MongoDB. I can then easily query MongoDB for near points, send the data back to the users browser and draw mark

Re: Internationalized URL different per language

2012-07-13 Thread Markus Gattol
Have a look at https://github.com/trapeze/transurlvania On Friday, 13 July 2012 21:48:54 UTC+2, galgal wrote: > > I need to make an urlpattern different for each language, but following to > the same view. > > for example: > url(r'^category/(?P[\w-]+)/, 'news.views.category', > name='category'),

Re: Query Distance from User

2012-07-15 Thread Markus Gattol
You can use geolocation https://developers.google.com/maps/articles/geolocation and if that's not accurate enough let the user provide his address and with it query Google's https://developers.google.com/maps/documentation/javascript/geocoding API The tricky bit here is if you want to get the l

Re: Query Distance from User

2012-07-15 Thread Markus Gattol
I can also recommend https://github.com/HPNeo/gmaps as a wrapper, speeds up and simplifies dealing with Google's API a lot. On Sunday, 15 July 2012 17:30:16 UTC+2, Markus Gattol wrote: > > You can use geolocation > https://developers.google.com/maps/articles/geolocation and

template filter to split string

2012-07-19 Thread Markus Gattol
within the head section of my base.html I am using {% block title %} {% if request.path_info == '/' %} home {% else %} {{ request.path_info | slugify }} {% endif %} {% endblock

Re: Query Distances from User

2012-07-24 Thread Markus Gattol
You're mistaken if you think only mobile devices support geolocation queries; current Chrome for example supports it already - info: https://developers.google.com/maps/articles/geolocation - test your browser: http://hpneo.github.com/gmaps/examples/geolocation.html -- You received this messa

Re: Query Distances from User

2012-07-24 Thread Markus Gattol
I see. You could use geolocation and still let the user input his location manually though even after you got a result via geolocation. The manual result via geocoding you can do in various ways like simple 'user puts in address, lat/lng is returned' or maybe even 'user drags marker to his posi

Django - Lotus Notes

2012-09-25 Thread Markus Christen
I have to create a web-service and i hope it works with Django. My plan is connecting to a Lotus Notes database. Can this work? If yes, how? Else no, how can i do this, witch programm do i need? I will programm it based on a Python language. I am a new programmer and used Python just for one we

WebPage with MsSql access

2012-10-17 Thread Markus Christen
ID, PWD and the filter with a textfield and how can i make the field for the data output from server? I know now only how to draw up the page thx http://www.djangobook.com/en/2.0/index.html i worked chapter 1-3 but i have not more time... :( i hope you can help me... greeze Markus -- You receive

implement of view

2012-10-24 Thread Markus Christen
Hi all i have there a little problem and my knowhow with django is not existent. ^^ What i have... --- urls.py - from django.conf.urls import patterns, include, url from klasse.views import portal, sql urlpatterns = patterns('', (r'^portal/$', portal), (r'^sql/$', sql)

Re: implement of view

2012-10-24 Thread Markus Christen
> > I forgot, sql is now hardcodet and i have to change it. on first page i > have to give the filter and the username... > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/m

Re: implement of view

2012-10-24 Thread Markus Christen
> > Thank you for your answer. i have chapter 1-4 of > http://www.djangobook.com/en/2.0/index.html done, but not much time to go > throught the hole book atm. i will try it with your code. :) > -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: implement of view

2012-10-24 Thread Markus Christen
> > Thank you for this page. I take my time today, to learn on it. :) > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/a9kvWj-zSjAJ. To post to this group

Re: implement of view

2012-10-25 Thread Markus Christen
Hmm ok, i can use return render_to_response("sql.html", { 'row': row }) and when i call now http://127.0.0.1:8000/sql/, i can see the correct data. But i will call http://127.0.0.1:8000/portal/ and try to implements the sql code in this page. I have by base.html in addition now " {% incl

Re: implement of view

2012-10-25 Thread Markus Christen
Ok, when i use now http://127.0.0.1:8000/sql/, the output is Kundendaten [('bla Hansruedi (THA) ', 'hansruedi@blubb.ch ')]. i have in base.html now " {% include "sql.html" %}" in addition. when i use now http://127.0.0.1:8000/portal/, my output is just: Kundendaten . how can i fix this pro

Re: implement of view

2012-10-25 Thread Markus Christen
> > How can i create 2 views on one page? >> def sql(request): and def portal(request): >> > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/xneUlf_fSGA

Database setup

2012-10-29 Thread Markus Christen
Good Morning First i made an odbc connect liek this: - import pyodbc cnxn = pyodbc.connect('DRIVER={SQL Server};SERVER=MAURITIUS;DATABASE=baan5c;UID=***;PWD=*') cursor = cnxn.cursor() cursor.execute("SELECT x.t_name, y.t_mail FROM tttaa

Re: Database setup

2012-10-29 Thread Markus Christen
EDIT: I have a second to implements. Its a Lotus Notes DB, and for the userauth there is a file on my computer. I tryed it with the odbc of IBM: --- import pyodbc conn = pyodbc.connect('DRIVER={Lotus Notes SQL Driver (*.nsf)};SERVER=Wind/Sefa

Re: Database setup

2012-10-30 Thread Markus Christen
> > What i know now: > > -- > > DATABASES = { > 'default': { > 'ENGINE': 'django.db.backends.mysql', > 'NAME': 'baan5c', > 'USER': '***', > 'PASSWORD': '*', > 'HOST': 'MAURITIUS', > 'PORT': '1433', >

compiler

2012-10-31 Thread Markus Christen
Good Morning I have downloaded files, that can helps by my mssql-odbc connection. This is my downloaded file: http://code.google.com/p/django-pyodbc/source/browse/trunk/sql_server/pyodbc/compiler.py?r=190 On lines 188 and 273, i become the message "'return' outside of function". It's not a spac

Re: compiler

2012-11-05 Thread Markus Christen
one where you have the backslash.) > > On Wed, Oct 31, 2012 at 3:28 AM, Markus Christen > > > wrote: > >> Good Morning >> I have downloaded files, that can helps by my mssql-odbc connection. This >> is my downloaded file: >> >> http://code.google.com/p

two independent Django sites, one user - share User objects

2011-09-12 Thread Markus Gattol
Say I have n (e.g. three) independent Django sites and one user. Rather than having n times a password/username I'd like to share this across all n sites. Also a users profile [0] and so forth. Now assume I don't want to use OpenID, how would I be able to have User objects in sync across n Djang

Re: Virtualenv and Django in Production

2011-09-20 Thread Markus Gattol
- it's just symlinks i.e. not more overhead - you won't clutter your system Python or vice versa when you up/downgrade something - easy to detect http://www.markus-gattol.name/ws/python.html#detect_a_virtualenv - if you want a production setup use e.g. gunicorn/nginx or even better uwsgi/mon

Re: Platform system with Django?

2011-09-26 Thread Markus Gattol
Have you had a look at the sites framework yet: https://docs.djangoproject.com/en/dev/ref/contrib/sites/ That might just be what you're after... -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://

Re: Web Designer

2011-09-26 Thread Markus Gattol
I'd say most people us a simple text editor such as Vim, Emacs... If you use runserver and and your browsers auto-reload for that tab then that's all you need. If you want to be a bit speedier then you can use things like Sass/Compass for your CSS and maybe HamlPy for your HTML. Both have "watch

Re: STATIC_ROOT confusion

2011-10-08 Thread Markus Gattol
if your STATICFILES_DIRS tuple contains '/a/b/static/img' then it will work if you put foo.jpg into /a/b/static/img/foo.jpg and have STATIC_URL = '/static/'. STATIC_ROOT doesn't have something to do with that, it's used to collect static stuff like CSS files from your apps etc. I think if people

Re: STATIC_ROOT confusion

2011-10-08 Thread Markus Gattol
Here's what I think is semantically good distinction: PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__)) (that's the dir containing your settings.py, that dir is usually one dir below your virtualenv, I simply name it "pr". You can then use PROJECT_ROOT to reference such as: STATIC_RO

Re: STATIC_ROOT confusion

2011-10-08 Thread Markus Gattol
> > > Your STATICFILES_DIRS should not be set to static. > Create a new theme directory, put your files there and update your > STATICFILES_DIRS. > Have a look at > http://www.linovia.com/blog/django-staticfiles-troubleshooting/ for an > example. > Yeah, read that post and I disagree. Introduc

Re: PayPal Adaptive Payments

2011-10-08 Thread Markus Gattol
Rather than reinventing the wheel take a look at https://github.com/agiliq/merchant It's possible to split one payment into 90,5,5 as you want, all you need to do is write a little logic atop merchant. -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Ajax replacement in django

2011-10-12 Thread Markus Gattol
If you don't want to do AJAX but still need to have a bidirectional link between client and server then websockets is probably what you want. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://grou

ZeroMQ / Mongrel2

2011-11-07 Thread Markus Gattol
Maybe sombody has given http://code.google.com/p/django-dmq and Mongrel2 a spin already and can report how it went? The reason I am interested is because it would allow me to get rid of WSGI altogether and have this stack (ZeroMQ being directly Mongrel2 for example):

Re: help_text line continuation

2011-11-14 Thread Markus Gattol
have a look at http://www.markus-gattol.name/ws/python.html#multi-line_strings_expressions ...it's the same for statements, just put stuff inside ( and ) -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: Simple task dispatching (How heavy is celery + RabbitMQ)

2011-11-28 Thread Markus Gattol
You don't need to roll your own... have a look at https://github.com/dmgctrl/django-ztask It's based on ZeroMQ and really lightweight compared to any alternative with a broker (yes, it's brokerless but that's a good thing I think for most use cases which don't really need a broker). -- You re

Re: Alternatives to celery

2012-01-16 Thread Markus Gattol
Have a look at https://github.com/dmgctrl/django-ztask It's based on ZeroMQ, you can schedule and background tasks in various ways, same machine or even across the network. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussio

Re: Could someone please give some suggestions about how to set up email sending settings on production.

2012-01-19 Thread Markus Gattol
you either use your own MTA (e.g. postfix) or you use a third party such as Amazon SES for which there is a Django application: https://github.com/hmarr/django-ses -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the

pagination peculiarities...

2011-04-15 Thread Markus T.
date, time, title], all events are there, using pagination or not. Can anyone explain this? Thanks a lot! Markus -- 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 u

Re: django-ztask

2011-06-09 Thread Markus Gattol
since you want feedback, that's http://www.reddit.com/r/Python/comments/hve19/django_zeromq_djangoztask/ probably something to watch :) -- 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@googlegrou

Re: do migrations (Django 1.7+) handle production data?

2015-01-14 Thread Markus Holtermann
RunSQL" do perform raw SQL queries. (For documentation please see the links Russell send earlier). Best /Markus [1] http://south.readthedocs.org/en/latest/commands.html#datamigration On 01/14/2015 01:43 PM, James Bennett wrote: > On Wed, Jan 14, 2015 at 6:34 AM, Abraham Varricatt < > ab

Re: Data migration fails because contenttypes not yet ready

2015-01-22 Thread Markus Holtermann
to a field that doesn't exist later or must not be null, cannot be applied when you run the migrations on an empty database. /Markus On Thursday, January 22, 2015 at 12:43:33 PM UTC+1, Daniel Hahler wrote: > > Hello, > > I was having the same issue as Torsten: it doe

Re: Slow test startup under Django 1.7

2015-01-22 Thread Markus Holtermann
project on the 1.8 alpha version and check the changes out and provide some feedback on how that turned out? Thanks in advance. /Markus On Thursday, January 22, 2015 at 9:47:22 PM UTC+1, Warren Smith wrote: > > I'm in the process of converting a large legacy app from Django 1.5 to

Re: Migrating to initial migration: "ORA-00955: name is already used by an existing object"

2015-02-02 Thread Markus Holtermann
database (this includes null constraints, indexes, etc.) to prevent errors in the future 2. Run "manage.py migrate --fake" /Markus On February 2, 2015 10:50:14 PM GMT+01:00, Carsten Fuchs wrote: >Dear Django developers, > >in a Django project that was created pre-1.7, did not use S

Re: Release announcements?

2015-02-18 Thread Markus Holtermann
mention the beta release. /Markus On Wednesday, February 18, 2015 at 7:00:50 PM UTC+1, Anton Melser wrote: > > Hi, > > I have started a new project on 1.8 and am looking for an RSS or mailing > list that has release announcements for Django proper - is there anything? > My

Re: [ANNOUNCE] Security releases and advisory issued (1.7.6 and 1.8b2)

2015-03-09 Thread Markus Holtermann
Hey Francis, with respect to the ModelAdmin.readonly_fields: no, the vulnerability was introduced in 1.7 with respect to the advisory: yes, all projects that make use the template filters in Python code and rely on Django 1.0 to 1.8b1 (including) are vulnerable. Best, /Markus On Monday

Re: migrations don't work

2015-03-22 Thread Markus Holtermann
than a solution. Please see https://docs.djangoproject.com/en/dev/topics/auth/customizing/#substituting-a-custom-user-model for details. /Markus On March 22, 2015 7:16:57 PM GMT+01:00, somenxav...@gmail.com wrote: >Hi, > >makemigrations works but migrate does not: > >[xan@mercuri

Re: Django system check gives error when storing method in variable

2015-03-29 Thread Markus Holtermann
place? /Markus On Sunday, March 29, 2015 at 6:01:04 PM UTC+2, Wouter Miltenburg wrote: > > Hi all, > > Haven't used Django 1.7.7 till today, but whenever I want to launch my > project I get the following error: > ERRORS: > gopro.MyPayment: (models.E020) The 'MyP

Re: django 1.8 upgrade custom user model syncdb

2015-04-08 Thread Markus Holtermann
. Best, /Markus On Wed, Apr 08, 2015 at 08:32:35AM -0700, Jochen Wersdoerfer wrote: On Wednesday, April 8, 2015 at 4:56:43 PM UTC+2, Jochen Wersdoerfer wrote: There’s an initial migration for my custom user model in accounts.models, so the accounts_pixolususer table should have been created. The

Re: Django 1.8 data migrations not able to locate related collections

2015-04-17 Thread Markus Holtermann
Hi A Lee, I think I've seen that one before. Can you check if the fix for https://code.djangoproject.com/ticket/24573 resolves the issue? /Markus On Friday, April 17, 2015 at 2:52:26 AM UTC+2, A Lee wrote: > > Hello, > > After upgrading to 1.8 from 1.7.7 our tests are now unab

Re: Slowness of the resulting squashed migration

2015-04-24 Thread Markus Holtermann
. It would be helpful if you report this as an enhance to our issue tracker [2] so we can include a possible improvement in future Django versions. /Markus [1] Have a look at slide 14f of https://speakerdeck.com/andrewgodwin/migrations-under-the-hood [2] https://code.djangoproject.com/ On Friday

Re: “Migrate” command for manage.py not recognised when using Django 1.8

2015-04-30 Thread Markus Holtermann
e from South to Django migrations. /Markus On Thursday, April 30, 2015 at 6:04:38 PM UTC+2, Kaya Luken wrote: > > Using "path/to/mySite/manage.py migrate" I get > > Unknown command: 'migrate'Type 'manage.py help' for usage. > > Listed commands a

Re: Little trouble with migration.

2015-05-07 Thread Markus Holtermann
end to use lower case app labels /Markus On Thursday, May 7, 2015 at 11:39:16 AM UTC+2, Алексей Широков wrote: > > I have custom user model. > > settings.py > --- > ... > AUTH_USER_MODEL = 'account.User' > ... > > > also I have following App

Re: Little trouble with migration.

2015-05-07 Thread Markus Holtermann
https://code.djangoproject.com/ /Markus On Thursday, May 7, 2015 at 3:24:47 PM UTC+2, Алексей Широков wrote: > > Oh thank you very much for the clarification. > I understood in what there was a mistake. And I apologize for my > carelessness. > > Thanks! > > -- You received this message beca

Re: Bug in 1.7-1.8 migrations

2015-06-06 Thread Markus Holtermann
Which exact Django version did you use for generating and applying the migrations? 1.7 as well as 1.8 had a few bugs regarding bytestrings. They have been fixed in 1.7.something and 1.8.something. I'd need to look up the exact patch version. /Markus On Fri, Jun 05, 2015 at 04:29:02AM

Re: HTTPS on docs.djangoproject.com

2015-06-12 Thread Markus Holtermann
Hey, Not on djangoproject.com but you can use http://django.readthedocs.org/ /Markus On June 12, 2015 8:32:09 PM GMT+02:00, "Davor Lučić" wrote: >Hello, > >Is it possible to request documentation on docs.djangoproject.com >without >HTTPS? > >I work for corpora

Re: ValueError during migrations.RunPython to create OneToOne records in new model

2015-06-17 Thread Markus Holtermann
Hi Gergely, You need to use apps.get_model() instead of get_user_model(). See https://docs.djangoproject.com/en/1.8/topics/migrations/#data-migrations /Markus On June 17, 2015 12:48:48 PM GMT+02:00, Gergely Polonkai wrote: >Hello, > >I have created a new model called Settings, wh

Re: updating site domain with data migration

2014-09-21 Thread Markus Holtermann
quot;, "0001_initial"), ] should work. I tried to explain the way dependencies in Django's new migration framework work in a blog post: https://markusholtermann.eu/2014/09/django-17-database-migrations-done-right/#how-do-dependencies-between-migrations-work Might be interesting. /Markus pgpsM4spLmQir.pgp Description: PGP signature

Re: updating site domain with data migration

2014-09-22 Thread Markus Holtermann
esuperuser" after the migrations are applied. If I don't need a superuser account during the migration, this would be my way of doing it. /Markus pgpj4q48V6qNY.pgp Description: PGP signature

Re: Backwards migrations on a single app (Django 1.7)

2014-10-05 Thread Markus Holtermann
Hey Dan, Without further details I tend to say no. However, the behavior is different than the one you might be used to from South. There is a ticket that can be used for discussions on that topic (for now) [1]. /Markus [1] https://code.djangoproject.com/ticket/23410 On Sun, Oct 05, 2014 at

Re: Data migration fails because contenttypes not yet ready

2014-10-21 Thread Markus Holtermann
Hey Torsten, Are you talking about Django 1.7 migrations or South? In the former case you need to make sure that your datamigration depends on the contenttypes application. If you use South: yes, calling update_all_contenttypes seems to be a valid solution. Best, Markus On Tue, Oct 21, 2014

Re: django 1.7 migrations: changes detected while nothing has changed ?

2014-10-22 Thread Markus Holtermann
Hey Michael, The problem seems to be the same as in #23473 https://code.djangoproject.com/ticket/23473 . Try adding a __eq__ method on the classes marked as deconstructible. /Markus On October 22, 2014 6:11:39 PM CEST, Michael wrote: >Hi, > >Does anybody know how are changes detect

Re: re-apply migrations on restored database

2014-10-30 Thread Markus Holtermann
inks all migrations have been applied, though. /Markus On October 30, 2014 7:07:02 PM CET, "Héctor Urbina" wrote: >Hello, > >I'm working on a development branch for a django (1.7) project. I have >a >couple of migrations, including a data migration, in this branch; an

Re: Where does django store auth migrations?

2014-11-10 Thread Markus Holtermann
Hey Ed, you certainly don't have to copy the virtualenv over to production! Can you share some insights on your custom user model and your settings. A complete traceback, if you have any, helps too. /Markus On Monday, November 10, 2014 9:00:04 AM UTC+1, Dr Ed wrote: > > >

Re: 1.7 migrations: problem with renamed upload_to function on FileField

2014-11-12 Thread Markus Holtermann
.FileField(upload_to=example.models.ex_upload_to)), to ('file', models.FileField(upload_to=example.models.ex_upload_to_new)), /Markus On Wednesday, November 12, 2014 5:28:52 PM UTC+1, Hans Lawrenz wrote: > > I'm having a problem generating migrations after changing the fun

Re: Migrations and FileField storage

2014-11-14 Thread Markus Holtermann
gs without influencing the migrations. Excluding the parameter from the migrations isn't possible by design. /Markus On Thursday, November 13, 2014 1:22:20 AM UTC+1, Nico Benitez wrote: > > I have a question about storage objects in a migration enabled project. > > I have a proj

Re: django 1.7 migrations upgrade from south: db.delete_foreign_key replacement?

2014-11-14 Thread Markus Holtermann
suggest you go with a "RunSQL" operation where you drop the constraint: https://docs.djangoproject.com/en/1.7/ref/migration-operations/#django.db.migrations.operations.RunSQL /Markus On Friday, November 14, 2014 4:23:52 PM UTC+1, drakkan wrote: > > Hi, > > I'm migrating

Re: Using data migration to create initial users errors

2014-11-28 Thread Markus Holtermann
docs, but hopefully makes it into 1.8. [1] https://code.djangoproject.com/ticket/23822 /Markus On Friday, November 28, 2014 11:47:24 AM UTC+1, Guillaume Cisco wrote: > > Did you find a way to use method create_user in a data migration? > I can't see a way to import the manager f

Re: Generated migration blocks my application

2014-11-29 Thread Markus Holtermann
Hey Oliver, Can you try out the current 1.7 development branch. There is a fix [1] for a recursion problem in the migration graph. Would be interesting if that fixes your problem. Thanks. [1] https://github.com/django/django/commit/8e3c3be32d0c39a31997b905ebf0490280baa347 /Markus On

Re: Changes to Model does not migrate to sqlite with Django 1.7?

2014-12-08 Thread Markus Holtermann
Hi Tobias, can you share the code for your old model and you new model along with the existing migrations for that app, please. Without some details it's hard to figure out what's happening. /Markus On Monday, December 8, 2014 8:23:33 AM UTC+1, Tobias Dacoir wrote: > > Hi

  1   2   >