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: 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: Django backend for Psycopg 3

2021-08-03 Thread Markus Holtermann
g to go through all of Django's hoops. As for the changes to Django, I guess we should at least merge those changes that remove the requirement of having psycopg2 installed, even though it's unused. So, namely in the contrib.postgres area. Instead, we should try to use either psycopg2

Re: Is there a quick and easy way to copy a model instance

2021-07-26 Thread Markus Holtermann
Hi Mike, Last time I checked, when you set `instance.pk = None` and then do `instance.save()`, Django will create a new instance. Cheers Markus On Mon, Jul 26, 2021, at 9:13 AM, Mike Dewhirst wrote: > I'm archiving a particular child record every time it is saved but > conne

Re: [django-announce] Django security releases issued: 3.2.1, 3.1.9 and 2.2.21

2021-05-07 Thread Markus Holtermann
Hi all, We took an defense-in-depth approach which seemed fined with our test suite. But it turns out, there are cases that weren't covered by tests which caused a regression in a few specific cases. This is tracked in https://code.djangoproject.com/ticket/32718 Cheers, Markus On Fri,

Primary Git branch renamed

2021-03-09 Thread Markus Holtermann
Hello all, following a very long discussion on the django-developers[1] mailing list, we've renamed the primary branch of the Django git repository from "master" to "main". Cheers, Markus [1] https://groups.google.com/g/django-developers/c/tctDuKUGosc/ -- You rece

Re: Tutorial "Writing your first Django App": NoReverseMatch at /polls/ - down at the end of part 3

2020-04-18 Thread Markus Grossniklaus
, Markus Grossniklaus wrote: > > a) I worked the whole tutorial down to the bottom of part 3 > b) I connect with the browser to http://127.0.0.1:8000/polls/ > c) the result is: NoReverseMatch at /polls/ > d) all project data are attached to this POST in mysite.zip > e) I think it can

Re: Running pending migrations in Middleware

2019-07-28 Thread Markus Holtermann
- You have no way to intervene when something goes south - ... I can elaborate in more detail when you want. But please, don't run migrations as part of the request-response cycle. /Markus On Sun, Jul 28, 2019, at 3:48 PM, David Grant wrote: > Anyone see any problems with running

Re: Google Plus going away - is Groups staying ?

2019-05-16 Thread Markus Berndner
markus-bernd...@t-online.de markus-bernd...@web.de markus.bernd...@gmail.com markusbernd...@gmail.com -- 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

Re: Zero Downtime Field Type Changes

2019-03-13 Thread Markus Holtermann
one. If you can live or deal with the new type using a different name it's much easier as you don't need to migrate data twice. /Markus On Wed, Mar 13, 2019, at 4:41 AM, 'Kyle Mulka' via Django users wrote: > Hi there, > > Wondering if there's any tool out t

Re: Re: Composite Primary / Foreign Key support

2019-02-18 Thread Markus Holtermann
There's general interest in having support for composite keys and composite foreign key. It's just that nobody has implemented it. There are proposals among the DEPs that layout ideas how they could be implemented: - https://github.com/django/deps/blob/master/draft/0191-composite-fields.rst -

Re: SPAM sent via this list?

2019-01-10 Thread Markus Holtermann
heers, Markus On Thursday, January 10, 2019 at 5:22:07 AM UTC+1, Lachlan Musicman wrote: > > I just got a spam email from the account > > aphi...@gmail.com > > That is threaded to my previous response to Alejandro Reyes's email > > Here's the raw header > > >

Re: AnonymousUser.is_authenticated woes

2018-10-11 Thread Markus Holtermann
Hi Stefan, You need to remove the parentheses `()` after `is_authenticated`. Markus On Thu, Oct 11, 2018, at 6:44 PM, Stefan Bethke wrote: > First time poster here, > > I'm currently working on some unit tests of my Django app, and I'm > running into a issue with is_a

Re: 2.1b1: Getting "unexpected keyword argument 'limit_choices_to'"

2018-07-04 Thread Markus Holtermann
Thanks for the report Axel. This seems to be the same issue as the one reported in https://code.djangoproject.com/ticket/29449 . A fix for this is coming with the next pre release (beta 2 or RC1). /Markus On Wednesday, July 4, 2018 at 1:46:54 PM UTC+2, axel...@chaos1.de wrote: > > Hi,

Re: Migration for auth_user.username field

2017-07-18 Thread Markus Holtermann
Hi Graeme, the only solution that comes to mind is overriding the alter_field() or _alter_field() methods on the schema editor: https://github.com/django/django/blob/stable/1.11.x/django/db/backends/base/schema.py /Markus On Wednesday, July 19, 2017 at 12:19:09 AM UTC+10, Graeme Perrow wrote

Re: Django Channels and Background Processes

2017-06-07 Thread Markus Schaber
> Apart from persistent information, it also contains non-persistent information (like which clients are currently connected, and when they last sent data), so I'm not sure whether a database is the right place to put that information. Thanks, Markus Schaber Am Dienstag, 30. Mai 2017 1

Django Channels and Background Processes

2017-05-30 Thread Markus Schaber
y documentation about them apart from the image yet, so pointers are welcome. :-) The pool information mentioned above needs also be available for clients using http messages, so we'll need to access that data from the "view functions". Is it possible and feasible to implement thos

Re: sqlmigrate does not quote default string values

2017-02-03 Thread Markus Holtermann
t be helpful. Thank you /Markus On Friday, February 3, 2017 at 7:27:31 PM UTC+1, Michael Grijalva wrote: > > Ok thank you. I will dig into it more. > > On Thursday, February 2, 2017 at 7:57:16 AM UTC-8, Tim Graham wrote: >> >> It looks like a bug at first glance. I enco

Re: Migrations with multiple databases

2016-10-25 Thread Markus Holtermann
Hi Andrea, If you have models that are entirely unrelated in different databases you could use different values for INSTALLED_APPS to limit the apps Django sees or by settings the values in the MIGRATION_MODULES dict to None to tell Django that those apps don't have migrations. Cheers, /M

Re: TypeError: 'class Meta' got invalid attribute(s): indexes

2016-08-22 Thread Markus Holtermann
for you when you ran "manage.py makemigrations". /Markus On Sun, Aug 21, 2016 at 11:16:44PM -0700, Dennis Kornbluh wrote: Going through the Django tutorial <https://docs.djangoproject.com/en/1.10/intro/tutorial05/>, now at part 5, section "Running tests". Followed the dir

Re: Django migrations taking all the memory on Django 1.9

2016-08-05 Thread Markus Holtermann
lementing that in [5]. If you're looking into contributing there, I'm happy to talk to you in more detail, preferably on IRC in #django-dev. Cheers, /Markus [1] https://github.com/django/django/commit/a1ba4627931591b80afa46e38e261f354151d91a [2] https://code.djangoproject.com/ticket/2

Re: Possible Bug in RegexURLResolver

2016-07-09 Thread Markus Holtermann
Hey, I did indeed not consider the multi-threading behavior on uwsgi when writing that. Can you post this to django-develop...@googlegroups.com and open a ticket for that. I'd love to get someone else's input. Thanks /Markus On Sat, Jul 09, 2016 at 08:36:44AM -0700, a.bra...@rataran

Re: proxy model inheritance generates a migration file in a third party app

2016-01-28 Thread Markus Holtermann
Hello Iliana, this is due to the definition of app_label = 'actstream' on your proxy model. This tells Django that this model should belong to another app. Hence the migrations involving that model are added to the actstream app's migrations. /Markus On Friday, January 29, 2

Re: Can you remove a model's last field of SQLite3 in Django 1.8?

2015-11-29 Thread Markus Holtermann
#x27; statement without any columns: https://www.sqlite.org/lang_createtable.html /Markus On Sun, Nov 29, 2015 at 09:17:53AM -0800, KwangYoun Jung wrote: Can you remove a model's last field of SQLite3 in Django 1.8? I have a model that has only one column in SQLite3. When I remove a last

Re: I have error like Type Error save() takes at least 2 arguments (1 given) in Django project.

2015-08-31 Thread Markus Holtermann
obj = super(DealsForm, self).save(commit=False, *args, **kwargs) Why "DealsForm"?? Also: you might want to share the traceback in the full future. obj.user = request.user obj.save() Can you solve this problems ? /Markus -- You received this message beca

Re: About the auto-increase PK

2015-08-08 Thread Markus Holtermann
/migration-operations/#django.db.migrations.operations.RunSQL /Markus On Saturday, August 8, 2015 at 8:10:35 PM UTC+10, Holland_zwz wrote: > > Hi all, > I want to add one auto-increase PK which start from one given value(such > as start from 1000). > > I try to write the model as

Re: auto_created getting ignored by makemigrations

2015-08-05 Thread Markus Holtermann
Hey Joey, not settings `auto_created=True` should do. /Markus On Thursday, August 6, 2015 at 1:17:09 PM UTC+10, JoeLinux wrote: > > Dear Anyone, > > I'm having an issue with a ManyToMany "through" table not being recognized > by the makemigrations command. Please

Re: Does imports of related models affect cascade deletion?

2015-07-30 Thread Markus Amalthea Magnuson
I will fetch the actual piece of code and build a small test case out of it, will reply again in this thread when I have some more info. On Thu, Jul 30, 2015 at 6:39 PM, Marc Aymerich wrote: > On Thu, Jul 30, 2015 at 3:38 PM, Markus Amalthea Magnuson > wrote: > > Hey, > > >

Does imports of related models affect cascade deletion?

2015-07-30 Thread Markus Amalthea Magnuson
Hey, I stumbled upon a piece of code and a comment that says this: Deleting a model object that has related objects will only cascade delete those objects if their models have been imported. Is this true? I have not found it in the documentation and would like to add a reference to the code co

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: 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: 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: 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: 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: “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: 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: 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: 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 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: 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: [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: 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: 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: 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: 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: 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: malicious requests?

2014-12-22 Thread Markus Holtermann
Hey Alex, a trailing . in the host header is valid per RFC 3986: http://tools.ietf.org/html/rfc3986#section-3.2.2: The rightmost domain label of a fully qualified domain name in DNS may be > followed by a single "." /Markus On Monday, December 22, 2014 12:44:25 PM UTC+1, Alex

Re: How to make a migration irreversible [1.7]

2014-12-21 Thread Markus Holtermann
ou can add "migrations.RunPython(lambda apps, schema_editor: None)" as first operation in the operations list for that migration. It is a noop in forwards migrations and not reversible. But in adding a RunPython operation you will lose the ability to squash migrations. /Markus On Sunday, December 21,

Re: Where to put my bugfix tests?

2014-12-21 Thread Markus Holtermann
Hey, Thank you for contributing. I would add the tests to somewhere in "tests/validation/". /Markus P.S.: You might want to use the django-developers mailing list for questions or discussion of the development of Django itself in the future. On Sunday, December 21, 2014 3:13:5

Re: Django 1.7: How to migrate data between two external apps

2014-12-17 Thread Markus Holtermann
I agree, a general "here's how you should do it" section in the docs should be added. Would you mind opening a ticket on https://code.djangoproject.com/ where you state the problem (e.g. link to this discussion). Thanks. /Markus On Wednesday, December 17, 2014 6:01:05 AM UT

Re: Django 1.7: How to migrate data between two external apps

2014-12-16 Thread Markus Holtermann
by squashing migrations, but certainly not without manually writing those migration files. /Markus On Saturday, December 13, 2014 6:26:17 PM UTC+1, John-Scott wrote: > > Say I decided to switch from a third party app foo-tags to app bar-tags. > Their Tag models are mostly identical so

Re: Multi-table inheritance and primary keys

2014-12-11 Thread Markus Holtermann
Hey folks, Tim thankfully merged my patch and backported it to 1.7. You could check out Django's stable/1.7.x branch to see if that solves your problem. /Markus On Thursday, December 11, 2014 2:21:41 PM UTC+1, Torsten Bronger wrote: > > Hallöchen! > > Markus Holtermann writes

Re: Multi-table inheritance and primary keys

2014-12-11 Thread Markus Holtermann
Hey Torsten, It looks like you ran into the bug reported as https://code.djangoproject.com/ticket/23956 . See my comment #6 for a workaround. /Markus On Thursday, December 11, 2014 11:01:51 AM UTC+1, Torsten Bronger wrote: > > Hallöchen! > > Is it correct that when using

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

2014-12-08 Thread Markus Holtermann
I tried to reproduce the problem with the steps you explained, but it works fine for me. Can you post your existing migration files for that app too, please. This will then hopefully give us some hints to solve your problem. On Monday, December 8, 2014 12:07:11 PM UTC+1, Tobias Dacoir wrote: > >

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

2014-12-08 Thread Markus Holtermann
A model is always uniquely identified by its app label and model name. Since migrations use that I don't see a way how this could happen. If you have two apps with the same app label the AppRegistry will blow up (and prevents Django from starting). On Monday, December 8, 2014 12:15:30 PM UTC+1,

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

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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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

Unofficial Kindle builds of the Django documentation

2014-01-16 Thread Markus Amalthea Magnuson
Hey all, I've done .mobi builds of the Django documentation so you can read it on a Kindle: http://alimony.github.io/django-docs-kindle/ Just thought people here might be interested :) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsub

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

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: 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', >

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

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: 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

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-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-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
> > 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

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)

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

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

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

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

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 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

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: 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: 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

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: 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

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

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: 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: 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

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: 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

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: 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

  1   2   >