How to fetch data from sql server and display on django web pages

2018-02-10 Thread Amit Kadivar
Please Help me.
How to fetch data from sql server and display them on django web pages 
through nginx web server..



-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b5577524-e67d-465f-bb49-e54bca92c88b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: loading script deployment

2018-02-10 Thread Leif
Hi Dylan,
Thank you for the great input. Hopefully django REST interface will be able 
to handle the post for large amount of data (~500k rows) without problem.
Best,
Leif 

On Saturday, February 10, 2018 at 10:14:29 AM UTC-5, Leif wrote:
>
> Dear Django,
>
> Sorry if this question has been answered. I have a Django based web 
> application and I just developed a loading script to upload data to 
> database using django model. The code is located under management/commands. 
> Here is the commands to run the script:
>
> $source ./appenv/bin/activate appenv
> (appenv)$python manage.py load_data data_file.csv
>
> I would like to deploy this script to my client. I don't want to send the 
> entire code of web application. How do I do it? 
>
> Thank you in advance for your help.
>
> Best,
>
> Leif
>

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4413e8af-6203-47e9-9537-720f224e2873%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: loading script deployment

2018-02-10 Thread Dylan Reinhold
What you want to do is build a REST interface for this data load. Then you
give them a python script that is just pushing the data into your REST API.
Using the management commands requite most of of your project to be
installed on their side and even worse it would need a connection back to
the DB.

Dylan

On Sat, Feb 10, 2018 at 6:14 AM, Leif  wrote:

> Dear Django,
>
> Sorry if this question has been answered. I have a Django based web
> application and I just developed a loading script to upload data to
> database using django model. The code is located under management/commands.
> Here is the commands to run the script:
>
> $source ./appenv/bin/activate appenv
> (appenv)$python manage.py load_data data_file.csv
>
> I would like to deploy this script to my client. I don't want to send the
> entire code of web application. How do I do it?
>
> Thank you in advance for your help.
>
> Best,
>
> Leif
>
> --
> 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@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/08fbd5c7-7b1f-410d-af06-7a5e7802b0e5%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHtg44AuczqY0MEwPpXt%3DsCg2nk3d1ZTCi0HhR4BThhuUC-dDQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


loading script deployment

2018-02-10 Thread Leif
Dear Django,

Sorry if this question has been answered. I have a Django based web 
application and I just developed a loading script to upload data to 
database using django model. The code is located under management/commands. 
Here is the commands to run the script:

$source ./appenv/bin/activate appenv
(appenv)$python manage.py load_data data_file.csv

I would like to deploy this script to my client. I don't want to send the 
entire code of web application. How do I do it? 

Thank you in advance for your help.

Best,

Leif

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/08fbd5c7-7b1f-410d-af06-7a5e7802b0e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: hi

2018-02-10 Thread VINROK chitrakathi
Hello mam

Sent from Mail for Windows 10

From: Rakhee Menon
Sent: Saturday, February 10, 2018 2:23 PM
To: Django users
Subject: hi

dfgdf 
-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f4d896a1-5040-480d-a692-3876fd946e9f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5a7eb74d.ce076b0a.f5158.8901%40mx.google.com.
For more options, visit https://groups.google.com/d/optout.


Django-hotsauce update

2018-02-10 Thread Etienne Robillard

Hi everyone,

I've decided to split the development of Django-hotsauce in 2 distinct 
branches:


- Django-hotsauce 0.8.x LTS: This is the main stable branch, for 
security fixes and maintenance, supporting Django 1.11, Python 2.7 and 
3.5, and the gevent loop engine for uWSGI. It also requires Cython to 
work. The upcoming commercial edition of django-hotsauce 1.0 will be 
most likely based on this branch.


- Django-hotsauce 0.9.x: This is the development and unstable branch of 
django-hotsauce, based on PyPy 5.9.


If you or your company would be interested in beta testing 
Django-hotsauce 1.0 commercial edition, I would love to hear back from you!


Sincerely,

Etienne


--
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0d773c63-77c2-49f3-614d-dc1f403da78d%40yandex.com.
For more options, visit https://groups.google.com/d/optout.


Re: Form field label template

2018-02-10 Thread Melvyn Sopacua
On zaterdag 10 februari 2018 03:43:23 CET jorrit...@gmail.com wrote:
> I want to improve the look of my forms with Materialize CSS
> (http://materializecss.com/forms.html), which requires some fields to have
> a div with class input-field around the input AND the label. I figured I
> could use the new template-based widget rendering, but to my surprise those
> templates don't include the labels. Is there a way to achieve this without
> rendering every field manually?

Save yourself some trouble:

http://docs.viewflow.io/material_forms.html

-- 
Melvyn Sopacua

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1642935.YoSP6bcgUj%40fritzbook.
For more options, visit https://groups.google.com/d/optout.


Re: How to install and use Django

2018-02-10 Thread PASCUAL Eric
Hi,


As a satisfied user, without any connection with JetBrain corp., and after 
having worked for several years before with Eclipse/PyDev, my feeling is that 
PyCharm is the best IDE of the moment for "non-toys" Python + framework 
projects.


Beware that if you want to benefit from the Web or scientific frameworks full 
support, you'll need the Pro (not free) version. But even if you'll have to pay 
for it, its price is really low for personal licenses (and even for enterprise 
ones), and the renewal fee drops every year, down to 53% after the 3rd year.


Best regards


Eric PASCUAL


From: django-users@googlegroups.com  on behalf 
of Jani Tiainen 
Sent: Friday, February 9, 2018 7:32:00 AM
To: django-users@googlegroups.com
Subject: Re: How to install and use Django


Hi,

There is not actual IDE for Django, IDEs like Visual Studio, PyCharm, PyDev.

Also some editors like Vim, Emacs, VSCode, Atom, Textmate do have support for 
Python at some extent.

Do the  official tutorial [1] or if you find that official tutorial is too 
packed Django Girls [2] do have excellent tutorial that goes in depth what you 
need to do to get Django apps up and running.

[1] https://docs.djangoproject.com/en/2.0/intro/
[2] https://tutorial.djangogirls.org/en/

On 8.2.2018 12.14, Vismaad Tamber wrote:
Hi

I am new to Django. can anyone please help me with installation and 
starting a project. Does Django have IDE like dreamweaver or Visual studio to 
design a website?
I have installed Python 3.6 on my Windows machine. Also I have downloaded and 
installed Django files at location 
C:\Users\Vismaad\Documents\Django-2.0.2\build\lib\django.

   I have no idea how to move ahead. What are Django-admin-tools?

Thanks!
--
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1f7aced7-72b8-4b7c-baee-ec891dc0509d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Jani Tiainen

--
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/78b69e58-57ec-4639-4248-cddca83b304a%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/AM5P193MB0083AD8ED2BBB382B41EF4FB8CF10%40AM5P193MB0083.EURP193.PROD.OUTLOOK.COM.
For more options, visit https://groups.google.com/d/optout.


Re: How to install and use Django

2018-02-10 Thread Etienne Robillard

Salut Pascual,


Le 2018-02-10 à 05:47, PASCUAL Eric a écrit :


If virtualenv is to be avoided /(which I do not recommend anyway, 
especially for a newbie, since it protects him from breaking his 
Python system installation)/, my advice would be to go with:



$ python setup.py install *--user*



You're not going to break your Python setup just by installing a package 
with distutils/setuptools. ;-)


In fact, the purpose of site-packages and dist-packages directories is 
to provide a logical layout for Python packages.

There's no need in my opinion to not install Django in a standard location.

Best regards,
Etienne

--
Etienne Robillard
tkad...@yandex.com
https://www.isotopesoftware.ca/

--
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/94c388f3-d2be-2830-d3c6-d7d7557388f7%40yandex.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to install and use Django

2018-02-10 Thread PASCUAL Eric
Hi,


If virtualenv is to be avoided (which I do not recommend anyway, especially for 
a newbie, since it protects him from breaking his Python system installation), 
my advice would be to go with:


$ python setup.py install --user


This way only the user's private environment is modified, and if anything goes 
wrong the normal behavior of the system can be restored by deleting the 
relevant tree under $HOME/.local (or its equivalent for non Linux contexts).


IMHO, suggesting a sudo based approach to a newbie (and even to a confirmed) 
user is an open door to system mess.


Anyway, virtualenv worth the investment learning how to use it. I have been 
used to deploy packages in Python system libs on production systems, and ran 
into problem at a time. Since then, and even when there is only one Python app 
running on the box, I have always deployed under virtualenvs and fell much 
better now.


Note : To be honest, this is not fully true currently, because I've switched to 
Docker based deployment for new projects, which eliminates all this libs 
conflicts hassles and ensure me that things run the same on my local staging 
env and on the production server. This is of course not the only benefit, but 
it solves this specific problem. For true production application class 
projects, I would recommend investing a bit in this direction.


Just my $0.02


Best regards


Eric


From: django-users@googlegroups.com  on behalf 
of Etienne Robillard 
Sent: Friday, February 9, 2018 9:37:02 PM
To: James Farris
Cc: django-users@googlegroups.com
Subject: Re: How to install and use Django

i found that the best way to confuse a newbie python/django programmer
is to invite him/her to use virtualenv.

Virtualenv is absolutely NOT required for properly running django in
development or production mode.

a most flexible approach is to install django in development mode:

$ cd /path/to/django

$ sudo python setup.py develop --prefix=/usr/local

HTH,

Etienne


Le 2018-02-09 à 13:12, James Farris a écrit :
> I highly recommend installing virtualenv and virtualenvwrapper. This will 
> reduce the stress of creating a bunch of unnecessary modules on your computer 
> and contain each project you create in a separate environment. For example 
> you wouldn’t necessarily want to install Django globally but rather for a 
> specific project your working on. That’s where virtualenv comes in.
>
> I also recommend going through the Django Book. It walks you through an app 
> that uses a lot of what Django has to offer: https://djangobook.com
>
> Also go through the Writing your first Django app in the Django docs: 
> https://docs.djangoproject.com/en/2.0/intro/tutorial01/
>
> I use PyCharm, because it has great auto complete and debugging.
>
> Other references mentioned above are below.
>
> Django apps: https://docs.djangoproject.com/en/2.0/ref/applications/
> Homebrew: https://brew.sh/
> Virtualenv: https://virtualenv.pypa.io/en/stable/
> Virtualenvwrapper: 
> https://virtualenvwrapper.readthedocs.io/en/latest/install.html
>

--
Etienne Robillard
tkad...@yandex.com
https://www.isotopesoftware.ca/

--
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/394be6a7-15a1-4328-90cf-b1385ac34bef%40yandex.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/AM5P193MB0083C6948FA5DED20EB38EB08CF10%40AM5P193MB0083.EURP193.PROD.OUTLOOK.COM.
For more options, visit https://groups.google.com/d/optout.


Re: hi

2018-02-10 Thread Etienne Robillard

Is it too hard for you to say something meaningful about django?

Please stop spamming.

Etienne


Le 2018-02-10 à 03:52, Rakhee Menon a écrit :

dfgdf --
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@googlegroups.com 
.

Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f4d896a1-5040-480d-a692-3876fd946e9f%40googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
Etienne Robillard
tkad...@yandex.com
https://www.isotopesoftware.ca/

--
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d097e275-8a92-dc58-afb3-67edd7667ddb%40yandex.com.
For more options, visit https://groups.google.com/d/optout.


hi

2018-02-10 Thread Rakhee Menon
dfgdf

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f4d896a1-5040-480d-a692-3876fd946e9f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.