Re: Working google maps widget

2018-04-05 Thread Cictani
Yes something like this but as a django-package so I can use it as a form field in admin and in my custom forms. django-geoposition requires jquery2, django-google-maps-widget requires complete GIS package (which I don't need) and django-location-field did not worked for some reason I still

Working google maps widget

2018-04-04 Thread Cictani
Hi, I am looking for a working google maps widget. All I need is a text field in which you enter an adress, then it should geocode this address via google geocoding and display it on the map. The widget should work without geodjango dependencies and with a recent version of jquery > 3.0 since

Re: Decoupling Postgres database credentials in django for deployment.

2018-04-02 Thread Cictani
Hi, You could rename your dev settings file to for example 'settings_dev.py' and only commit this file (add settings.py to .gitignore). On your Linux Server you could create a new directory in /etc like: /etc/django /etc/django/app1 /etc/django/app2 ... There you store your production

Re: Integrating Java(web servlets) into django as front end.

2018-03-25 Thread Cictani
Models from Django? That won't work. You should recreate the functionality of the servlet in Django. -- 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

Re: How to undisplay the field with empty value in django admin?

2018-03-25 Thread Cictani
Hi, yes you can create a new python file in your app folder in order to run it you can enter django shell: python manage.py shell Let's say your app is called 'chem' and your file is called 'helpers.py' in there you have defined a function called: 'convert_reactions_meta'. Then you can run

Re: Integrating Java(web servlets) into django as front end.

2018-03-25 Thread Cictani
And they should be displayed as they are generated or do you need a different design? -- 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

Re: Integrating Java(web servlets) into django as front end.

2018-03-25 Thread Cictani
What do these servlet output? Html, Json, xml? -- 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,

Re: How to undisplay the field with empty value in django admin?

2018-03-24 Thread Cictani
After adding the new model and doing the migration you have to write a small script which will convert the data. You have to go through all the Reactionsmeta objects with for reaction in Reactionsmeta.objects.all(): Then within the for loop you have to create another for loop which will go

Re: How to undisplay the field with empty value in django admin?

2018-03-24 Thread Cictani
Grammarly messed up my post quite badly... You should set the extra attribute to 0 (so only if there is data admin will display an entry. If you set it to 6 it will display 6 empty entries but that's what you wanted to prevent) In your admin.py you have to create an InlineAdmin for >

Re: How to undisplay the field with empty value in django admin?

2018-03-24 Thread Cictani
Sorry it is not a many to many relation anymore but a one to many (from the new models perspective) Am Samstag, 24. März 2018 11:24:48 UTC+1 schrieb Cictani: > > > I think you have a misconception in your model. What you need is a* many > to many* relation so it does not mat

Re: How to undisplay the field with empty value in django admin?

2018-03-24 Thread Cictani
Hi, I think you have a misconception in your model. What you need is a many to many relation so it does not matter how many metabolites each Reaction has. I am not so fimilar with Chemistry. So each stoichiometry belongs to exactly one metabolite? if yes you could create an additional Model

Re: Given a model, how can I get a widget for each field?

2018-03-20 Thread Cictani
Without a form you can't get the Widget which is used by default. Are the fields always the same? If yes you could create a ModelForm on the fly and render the fields manually. Best regards, Andreas -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Trouble deploying Django/wagtail on Ubuntu 14.04

2018-03-20 Thread Cictani
You have to set the python-path too: WSGIDaemonProcess bakerydemo python-home=/home//.virtualenvs/wagtailbakerydemo/ python-path=/home//bakerydemo/ In the logs you see "No module named 'bakerydemo'" because you did not add the project directory to the python-path. Hope this works. Best

Re: Error decoding password stored in mysql : binascii.Error: Incorrect padding

2018-03-14 Thread Cictani
Hi, try removing the \\n at the end it seems to be a bug or maybe while you exported it new lines were added and now you have these new lines in your password base64 strings. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: When to create a new app

2018-03-10 Thread Cictani
Hi Andréas, thank you. Currently I am working on a db app for ant species (https://github.com/Cictani/antkeeping_info). Each ant species can be native to several countries and other regions (states for example). I created a separate regions up which contains the models for Country and Region

When to create a new app

2018-03-09 Thread Cictani
Hello, I have problem to figure out when I should create a new app in my Django project. Can you give me some Tipps? Best regards Andreas -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: Bug in 2.0 tutorial?

2018-03-02 Thread Cictani
Well it was my mistake I forgot the '/' in the urls.py of my site where I included the polls urls. So no bug :) Am Samstag, 3. März 2018 08:09:01 UTC+1 schrieb Cictani: > > Hi, > > I'm doing the tutorial right now and I'am at step 3: > https://docs.djangoproject.com/en/2.0/i

Bug in 2.0 tutorial?

2018-03-02 Thread Cictani
Hi, I'm doing the tutorial right now and I'am at step 3: https://docs.djangoproject.com/en/2.0/intro/tutorial03/ I think the path is not correct in the tutorial. In the tutorial: path('/', views.detail, name='detail'), If I do it like that I get a 404 I have to use: path('//', views.detail,

When do I need a new app within the site?

2018-02-22 Thread Cictani
Hi, I'm just beginning developing a new app(s) and I'm wondering when I need to add a new app. if one app uses models from another app is that a hint that these two apps are acutally one app or is this still ok in terms of good design? Let's say I have a customer app (with customer models,