Re: loading script deployment

2018-02-11 Thread Leif
Thank you, Jani,
I will try.
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/55817374-92fb-4a8e-81ff-d239158793c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: loading script deployment

2018-02-11 Thread Jani Tiainen
Hi.

Since you have so much data to pass and it's in CSV format I would suggest
that instead of pushing data row by row over network upload that data in
CSV format to your API.

Then parse file using forms and save to database.


10.2.2018 22.47 "Leif"  kirjoitti:

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.

-- 
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/CAHn91odD33dcz9nkRT0hwQgk6qwYeuYDjryf1JwiXS_jutZ%3DZw%40mail.gmail.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.