Re: How to pre-load model data?

2017-09-08 Thread James Schneider
On Sep 8, 2017 12:12 PM, "Mark Phillips" wrote: Thanks for all your replies and helpful suggestions. To answer some of your questions - 1. Where is the data coming from? - It is textual data in a spec/spreadsheet. The data is a lot of meta data (name and one or more

Cannot put raster map to response

2017-09-08 Thread Ahmet Temiz
I created a "raster" map as defined in GDAL API doc. But I cannot put that raster map into Django response. I couldnot find any example. What is the way? I will appreciate, if you answer. Regards -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: How to pre-load model data?

2017-09-08 Thread Mark Phillips
Brilliant idea! Did not know these importers existed. Thanks! Mark On Fri, Sep 8, 2017 at 3:11 PM, Jani Tiainen wrote: > Hi. > > We actually implemented spreadsheet importer for one of our clients. > > It was relatively trivial. Just read the row from spreadsheet put it to

Re: How to pre-load model data?

2017-09-08 Thread Jani Tiainen
Hi. We actually implemented spreadsheet importer for one of our clients. It was relatively trivial. Just read the row from spreadsheet put it to modelform for validation and save. There are pretty good libraries to read spreadsheets directly. 8.9.2017 22.13 "Mark Phillips"

Re: How to pre-load model data?

2017-09-08 Thread Mark Phillips
Thanks for all your replies and helpful suggestions. To answer some of your questions - 1. Where is the data coming from? - It is textual data in a spec/spreadsheet. The data is a lot of meta data (name and one or more values) for describing attributes of scanned documents. There is what I would

Re: Anyone having issues using python-social-auth?

2017-09-08 Thread Pengcheng Chen
Never mind. Changed to django-allauth. Got it working. Cheers! Ryan On Thu, Sep 7, 2017 at 12:40 PM, Pengcheng Chen wrote: > Hey there! > > Glad to join the community! Hope all is well! > > I am having issues with the python-social-auth package in Django 1.11.5 > and

Re: Django channels

2017-09-08 Thread Andrew Godwin
Not yet - feel free to file one and tag/label it as a feature request, but it's unlikely to be done soon as there's a lot of foundational work to be done at the moment :) Andrew On Fri, Sep 8, 2017 at 3:21 AM, wrote: > Thanks a lot. Is there any Github issue? Maybe if I

Re: django-leaflet installation exception

2017-09-08 Thread carlos
you need install GDAL Librery see these links 1. https://stackoverflow.com/questions/37294127/python-gdal-2-1-installation-on-ubuntu-16-04 2. http://www.sarasafavi.com/installing-gdalogr-on-ubuntu.html if you not used ubuntu find installation for you distro: fedora etc. Cheers On Fri, Sep 8,

Re: setup.py for Django project?

2017-09-08 Thread Александр Христюхин (roboslone)
`manage.py` is ABSOLUTELY NOT a `setup.py`. It doesn't really matter how you think. `setup.py` is used for package managing while `manage.py` manages Django. > On 8 Sep 2017, at 09:17, callsamle...@gmail.com wrote: > > hi, > yes, django has `setup.py`, that's `manage.py`,LOL > > depend on how

django-leaflet installation exception

2017-09-08 Thread marycoopergd
Hi everyone, I'm new to Django and I'm having some problems installing leaflet. You can see the problem in the question on stackoverflow . Many thanks -- You received this message because you are subscribed

Re: setup.py for Django project?

2017-09-08 Thread callsamleung
hi, yes, django has `setup.py`, that's `manage.py`,LOL depend on how you think. if you code is like `tools`, that use `setup.py` like your code is a `calculator`. if not, that's many way to setup, like Fabric, Ansible,etc. think this two word, `functional` and `system/project` for python, see

Re: How to pre-load model data?

2017-09-08 Thread callsamleung
hi, think about problem, you mean initial data? see this(https://docs.djangoproject.com/en/1.11/howto/initial-data/) django way suggestion: 1. django command, load/dump data.(https://docs.djangoproject.com/en/1.11/ref/django-admin/#django-admin-dumpdata) 2. write your data

Re: Django channels

2017-09-08 Thread vorcak
Thanks a lot. Is there any Github issue? Maybe if I have time in a future, I could help out (even though I don't promise anything at the moment, these weeks are crazy :) Btw, if I change m2m relationship for this model, I always get an outdate update -> I'm always one change later on the

Re: How to pre-load model data?

2017-09-08 Thread James Schneider
On Sep 7, 2017 9:57 PM, "Mark Phillips" wrote: I have a several classes in models.py, and I would like to load some data into these models (or tables in the db), as well as add more data over time through the admin panel. I googled for some ideas on how to

Re: How to pre-load model data?

2017-09-08 Thread Bernd Wechner
Mark, It depends a bit on where you're getting your data from. One of the safest ways would to build a fixture, and use "manage.py loaddata". The fixture can be in json, xml or yaml formats. If it's in some other format, then there are other ways of course too. There are always a few