Re: Hosting a django website

2020-01-28 Thread Mario R. Osorio
I prefer digital ocean but by whatever you choose by any means, avoid 
cpanel.

On Saturday, January 25, 2020 at 1:42:13 PM UTC-5, Perceval Maturure wrote:
>
> dear all
> 1.what is the best way to host a django website on a shared host that you 
> are not sudo?
> 2.is this possible?
> 3. any ideas?
>
> -- 
> *Perceval Maturure*
>
> *083 303 9423*
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5ab64f0a-a307-4a84-b90f-b89372ce0454%40googlegroups.com.


Re: Anyone used RENDER product for hosting?

2019-10-11 Thread Mario R. Osorio
I like Digital Ocean

On Tuesday, October 8, 2019 at 5:33:27 AM UTC-4, ram.mullapudi wrote:
>
>
> Hello,
>
> I'm looking for cheaper, secure and reliable way to host my website? The 
> site is being developed on DJango FWK.  We are currently on GCP and also 
> reviewed other popular vendors too. I recently came to know about Render 
> platform and am wondering if anyone tried it?
>
> Regards,
> ~Ram
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e9172f49-128d-4964-b526-0736a7a88fd5%40googlegroups.com.


Re: django calendar app

2019-09-27 Thread Mario R. Osorio
HTH:

https://djangopackages.org/grids/g/calendar/


On Thursday, September 26, 2019 at 10:48:13 AM UTC-4, Perceval Maturure 
wrote:
>
>
> Dear all 
>
> i am looking for a django calendar app/package compatible with python 3.7 
> , django 2.1 and django cms 3.6.0.
>
> Any ideas, please let me know
>
> -- 
> *Perceval Maturure*
>
> *083 303 9423*
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/396e24bc-9605-4a52-b0a5-d7721a34bfae%40googlegroups.com.


Re: Python +django

2019-09-10 Thread Mario R. Osorio
I must agree that video tutorials are harder to follow, specially if and 
when they are if at least a bit outdated. I used to hate them however; I've 
learned to appreciate them specially because of one reason: *YOU CANNOT 
COPY AND PASTE.*

Written tutorials don't help you go thru the full learning process and make 
you a master of [Ctrl]-[C] & [Ctrl]-[V] since you're not even checking the 
code nor make sense out of it, let alone memorizing it.

Back in the day, when written tutorials were handed to you on paper, 
probably as photocopy of some else's photocopy (bis), you would learn by 
typing the code yourself. It is online tutorials that I find not as helpful 
anymore.

Now, don't get me wrong, I have found lost of excellent online tutorials. 
The problem is that it is all too easy to copy and paste.

IMHO (and at least in programming) written tutorials are for the very first 
baby steps but once you've outpaced those; you need to move away from them, 
even if we are talking about learning a new programming language, tool, 
framework or paradigm.



On Monday, September 9, 2019 at 7:59:07 AM UTC-4, ajoeiam wrote:
>
> On Mon, Sep 9, 2019 at 6:33 AM selim atmaca  > wrote: 
> > 
> > You should learn python basics first but dont dive deep, just the 
> basics. Then 
> > There is a nice django video series on youtube. Search for corey schafer 
> django. There are 17 videos in that series. If I was starting django today, 
> definetly I would start it with that video series. 
> > 
> Hopefully this isn't a thread hijacking - - - - but - - - - - 
> I am finding that online videos are hugely wasteful of time and would 
> rather have a text equivalent. 
> Is there such for this recommended video series? 
>
> Regards 
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/65360234-aaa6-4365-9e8e-fc6d8a3bc5f2%40googlegroups.com.


Re: how to pass user input into raw sql query ?

2019-09-07 Thread Mario R. Osorio
*Do not use string interpolation* as proposed by Bhoopesh!!!

Take a look at:

   - SQL injection 
   
   

   - SQL injection protection 
   

 
   and
   - Passing parameters into raw() 
   

   

On Friday, September 6, 2019 at 6:59:04 AM UTC-4, leb dev wrote:
>
> i have a django project that is connected to sql server  database i am 
> trying to write a *select query *  #convert the Django ORM into SQL query
> print("sql query  = ",FilterQuery.query)
>  
> *select * from table name where filed name = user input *
>
>
> *can anyone help me with this?*
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/14d1748a-9b51-47b6-83ad-7a4235c0ec9b%40googlegroups.com.


Re: Chat

2019-09-06 Thread Mario R. Osorio
Tienes muchas opciones:

   - TUTORIAL: Real-time chat with Django, Twisted and WebSockets – Part 1 
   

   - Creating a chat with Django Channels 
   
   - Bearle/django-private-chat 
   
   - Chatting in real-time with WebSockets and Django Channels 
   
   - tomi77/django-chat 
   - Realtime Django Part 1: Build a Chat application with django, RabbitMQ 
   and Vue.js (Introduction and Setup) 
   
   

HTH!

On Friday, September 6, 2019 at 7:44:14 AM UTC-4, samuel lopez wrote:
>
> Saludos, alguien me puede dar una breve explicación o si hay un paquete o 
> algo para poder agregarle una aplicación de chat a mi proyecto en 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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e5efcb51-b8dd-4300-8b2e-a72546d593ff%40googlegroups.com.


Re: How can i share one Database Sqlite between 2 app on pythonanywhere

2019-09-04 Thread Mario R. Osorio
You have at least 2 possibilities, depending on your exact needs:

1- The preferred method is to Import the models from the app they reside 
at, like in:

*from foo_app.models import bar_model*

2- You could also have the models you need to share created at the project 
level thus making them available to all and any of your apps (this method 
is rather frowned upon)

3- If what you need is not the share the data among your apps but the 
structure of the tables, you could also use "abstract base classes". and 
use use them like in the 2 previous options.

HTH

On Wednesday, September 4, 2019 at 1:10:39 AM UTC-4, Balaji wrote:
>
> Hi Everyone
>
> Can anybody suggest me
> How can i share one Database Sqlite between 2 app on pythonanywhere.
>
> Currently i have deployed one project on PythonAnywhere.
> I have purchases 2 App.
> Now i can execute 2 App simultaneous.
>
> I have deployed app1.pythonanywhere.com and app2.pythonanywhere.com
>
> app1.pythonanywhere.com is my real time hosted project. Before making any 
> changes, i create mirror copy of code and Database Sqlite on 
> app2.pythonanywhere.com, make changes and if changes are proper. I make 
> changes in
> app1.pythonanywhere.com.
>
> But it is time consuming Process. Better solution may be share database 
> and make changes in Business Logic and reflect in orignal one.
>
> My Simple Question is
> How can i share sqlite database between two Project here.
>
> OR
>
> Is there any other way to do the same thing more efficiently?
>
> Thanks in Advance.
> -- 
>
>
> *Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,*
> *SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*
> *Official: bssh...@sggs.ac.in  *
> *  Mobile: +91-9270696267*
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8208d80d-a0d3-422f-a79e-50f132df97ad%40googlegroups.com.


Re: confusing about running some codes in django

2019-08-29 Thread Mario R. Osorio
That code is meant for you to type it in the python console however, you 
could also include it pretty much anywhere in your code.


On Wednesday, August 28, 2019 at 9:15:20 AM UTC-4, Vahid Asadi wrote:
>
> Hi . 
> when i read the django docs,it suggested that running some code but it 
> does not note that where to write this piece of code . the code is :
>
> from django.contrib.auth.models import User
>
> u = User.objects.get(username='john')
>
> u.set_password('new password')
>
> u.save()
>
>
> i know that i can run it in django shell (manage.py shell)
>
> but i want to write these in a file(its some confusing that every code in 
> views.py should return a http response but this type of commands does not 
> return any respone) 
>
> where should i put this code ??
>
> thanks for your attention.
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b6b3b24e-b34e-42e6-b637-3e6a30ca2823%40googlegroups.com.


Re: How can I switch AUTH_USER_MODEL for each application?

2019-08-27 Thread Mario R. Osorio
I think this is what you're looking for:

https://docs.djangoproject.com/en/2.2/topics/db/multi-db/


HTH!



On Monday, August 26, 2019 at 10:12:06 AM UTC-4, Sim wrote:
>
> https://docs.djangoproject.com/en/2.2/ref/settings/#databases 
>
> DATABASES in settings.py is a dict() and use database_routers. 
>
> Good luck
>
> On Mon, Aug 26, 2019 at 12:47 PM Ayu Nakata  > wrote:
>
>> I want to use each database in each application.
>> I tried using different settings.py for each application, but it didn't 
>> work.
>> Can you give me some advice?
>> Thank you.
>>
>> -- 
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/d6713c1f-a0e0-439a-9731-c04f9f2f9217%40googlegroups.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 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9d5be005-6ef5-4e79-8995-79b7e0c40880%40googlegroups.com.


Re: UI for python windows applications

2019-08-22 Thread Mario R. Osorio

You might want to take a look into Kivy (https://kivy.org/ 
)

HTH


On Wednesday, August 21, 2019 at 1:46:57 PM UTC-4, ARAVIND BALAKRISHNAN 
wrote:
>
> Can anyone suggest me any modern UIs for python application in windows 
> other than electron
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7e6d689a-ba44-4703-a97d-262144933c08%40googlegroups.com.


Re: No puedo generar qr en django

2019-05-21 Thread Mario R. Osorio
Osman,

Un codigo QR no es otra cosa que una forma compacta de representar 
informacion. Sin embargo, existen varios tipos de codigos QR.

Lo primero que tienes que hacer es seleccionar que es lo que vas a 
representar con el codigo; podria ser simplemente el identificador unico 
del empleado o, dependiendo de tus posibilidades y/o necesidades, un enlace 
que incluya ese identificador unico, y que permita a quien lo lea a ir a la 
pagina contentiva del perfil del empleado. No hay una bala de plata: tu 
escoges tu solucion.

Respecto a cual estandard QR utilizar: debes revisar la bibliografa, porque 
algunos QR son muy limitados, mientras que otros son muy complicados, lo 
que los hace mas dificil de leer.

Revisa estos enlaces:

https://es.wikipedia.org/wiki/C%C3%B3digo_QR

https://www.unitag.io/es/qrcode/what-is-a-qrcode

https://pypi.org/project/qrcode/

https://medium.com/@ngengesenior/qr-codes-generation-with-python-377735be6c5f



On Monday, May 20, 2019 at 6:22:08 PM UTC-4, osman alexander samayoa 
ramirez wrote:
>
> muy buenas quisiera que alquien me pudiera ayudar para poder generar qr a 
> mis empleado y que sea unico para cada uno 
>

-- 
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/bd4cbe30-c288-44ac-a534-0c4d396c8b2e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Generate CUID Client Side

2019-05-17 Thread Mario R. Osorio
This question is OT however; *cuid *being a js library, what you have to do 
is have your templates include the necessary libraries and make use of them.





On Thursday, May 16, 2019 at 9:09:13 AM UTC-4, Timothy Cook wrote:
>
> I have a project where I want to generate a CUID client side to send to a 
> REST API service as the document name. 
>
> My question is how to best include the cuid library 
>  so that the client browser is 
> generating the CUID and how to implement this in the template so I can post 
> this cuid back to the view.
>
> Thanks,
> Tim
>
> -- 
> Timothy W. Cook, CEO
> Data Insights, Inc. 
>

-- 
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/9a4e9bd3-398c-4796-bc39-f895973b0feb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: More controls on createsuperuser

2019-04-30 Thread Mario R. Osorio
You'd only need editing the already existing management command and remove
the possibility of using createsuperuser, but that is as useless as a
ceiling fan on a motor bike.as anyone that already has access to the
management code could just revert those changes. even continuing this
thread is a waste of time.

Dtb/Gby
===
Mario R. Osorio
B.A.S. of Information Technology
Web page: *http;//mario.osorio.solutions
<http://http%3B//mario.osorio.solutions>*
Email: *mario@osorio.solutions* 
*Just Choose Python!* <http://www.gentoogeek.org/files/choose_python.pdf>

*SQL programmers don't die, they just ROLLBACK the TRANSACTION.*



On Tue, Apr 30, 2019 at 11:12 AM Chetan Ganji 
wrote:

> RE :"*someone could still run createsuperuser *"
>
> How do you suppose this is going to happen unless they have access to your
> system?
>
> If you are really concerned about that?? django is basically a package.
> Just find the source code for the creatsuperuser admin command and delete
> that file if its the only command in that file ;-)
> if not just delete that function only :) Its that simple.
>
> But How will you create a superuser after deleting the command from the
> django package??
>
> One way to solve is write your own custom management command, create
> superuser at the time of deployment and delete that custom command also.
>
> I hope this solves your problemo :)
> Cheers!
>
>
> Regards,
> Chetan Ganji
> +91-900-483-4183
> ganji.che...@gmail.com
> http://ryucoder.in
>
>
> On Tue, Apr 30, 2019 at 6:09 PM Lipika Chandel 
> wrote:
>
>> Hey,
>> I am using Django 2.2 and I am stuck with the image upload functionality
>> from admin site. I am not able to get the image on my template.
>> Please help.
>>
>> Thanks & Regards
>> LIPIKA CHANDEL
>>
>> On Tue, Apr 30, 2019 at 11:57 AM Jani Tiainen  wrote:
>>
>>> I've have to agree that any attempt to limit superuser creation through
>>> manage.py is wrong solution to wrong problem.
>>>
>>> Even it's possible to attempt it it is as easy to circumvent.
>>>
>>> So do not give an access to manage.py to users that are not supposed to.
>>> Problem solved for good.
>>>
>>> ma 29. huhtik. 2019 klo 21.04  kirjoitti:
>>>
>>>> Anyone capable of running the createsuperuser command on your project
>>>> most probably has access to all and any of the project's files, specially
>>>> your config file.
>>>>
>>>> Actually this user is either a valid su or you are in serious trouble
>>>> because the security of your server sucks or you gave access to your
>>>> project to the wrong person.
>>>>
>>>> So, no I don't think there is any point in doing so. Not because it
>>>> can't be done but because it is both trivially useless.and uselessly
>>>> trivial.
>>>>
>>>>
>>>>
>>>> On Sunday, April 28, 2019 at 11:24:57 PM UTC-4, JJ Zolper wrote:
>>>>>
>>>>> All,
>>>>>
>>>>> Curious what people think about more thought and control going into
>>>>> who can run the createsuperuser method?
>>>>>
>>>>> For example say there's models that I don't want anyone to touch
>>>>> except myself as a superuser. Is it not plausible that even if I make a
>>>>> Django Group around that model that someone could still run 
>>>>> createsuperuser
>>>>> and give themselves the ability to have full control?
>>>>>
>>>>> Wouldn't it make sense if some random developer were to run
>>>>> createsuperuser using django settings with any of the databases (as an
>>>>> example) that it prevent them if say that email isn't on say an internal
>>>>> list in the django admin of approved potential users?
>>>>>
>>>>> I see something like this being a good idea to prevent just anyone
>>>>> from getting full control over the site without it being specifically
>>>>> provided.
>>>>>
>>>>> Maybe there's something I'm missing something but been reading about
>>>>> third party options and more about what's there and I just feel there's a
>>>>> hole when it comes to who can create a super user account. Obviously you
>>>>> could have a script that you run to initialize who is a super user, what
>>>>> the groups are etc, but then you're basically recording personal
>>>>> information somewhere when that should only be ty

Re: Create project in windows, but run it in Ubuntu

2019-03-26 Thread Mario R. Osorio
I'm sure you won't regret it.

Dtb/Gby
===
Mario R. Osorio
*Just Choose Python!* <http://www.gentoogeek.org/files/choose_python.pdf>

*SQL programmers don't die, they just ROLLBACK the TRANSACTION.*




On Tue, Mar 26, 2019 at 3:04 PM Chafid Ahmad  wrote:

> Thanks everyone for the suggestions. I ended up using the 3rd solution:
> making my laptop dual boot, Ubuntu and windows
>
> Cheers
>
> On Tue, Mar 26, 2019, 20:34 Mario R. Osorio  wrote:
>
>> Of course you can however, IMHO; it is better to use whatever is closest
>> to the real McCoy. Two options I can think of are:
>>
>> 1) Use Docker images. It is not very hard to work with Docker images
>> however, it does add a bit of difficulty to your workload.
>>
>> 2) Use a Linux image in VirtualBox. It will only take few minutes and I'm
>> sure will make you happier that dealing with Docker images. First, I would
>> use exactly the same Linux version as your server and try to replicate its
>> configuration.
>>
>> 2) If you are a big fan of Linux, you might want to install Linux and
>> leave on a dual boot system. This is what I have. The only problem is
>> though I rarely ever use the Windows boot, probably 3 times a year top,
>> and every time I do I have a looot of updates to make.
>>
>> On Friday, March 22, 2019 at 8:28:54 AM UTC-4, Chafid Ahmad wrote:
>>>
>>> Hi, I have a client who wanted to run a Django project that can run in
>>> Ubuntu. As I don't have a UX machine to developed it, is it possible to
>>> developed the project in Windows, but later export it to Ubuntu? My initial
>>> plan is:
>>> - Developed the project with pycharm in windows
>>> - Upload the project to github
>>> - retrieve the project from github to an ubuntu virtual machine and test
>>> it
>>> The reason I don't want to developed the project in virtual machine is
>>> that my hardware resource is limited, I don't want to share it if I don't
>>> absolutely have to.
>>> Is this possible? If not can anyone help me with another alternative
>>> solution?
>>>
>>> Cheers
>>> Chafid
>>> --
>>>
>>> --
>> 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/b242bc73-a837-43e2-a615-df09ad8d1908%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/b242bc73-a837-43e2-a615-df09ad8d1908%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/fCUBH1LCFoc/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CADf88xkmoODaGu6xOUvRuR4nEp9iGVr9%3DiYvzHgio5JaS04kuQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CADf88xkmoODaGu6xOUvRuR4nEp9iGVr9%3DiYvzHgio5JaS04kuQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
> 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/CAO2PNV4x%2B3zMH3LOF9_p-nuf8Wy01DC6mdZ1sse2-5BYaONJvQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Create project in windows, but run it in Ubuntu

2019-03-26 Thread Mario R. Osorio
Of course you can however, IMHO; it is better to use whatever is closest to 
the real McCoy. Two options I can think of are:

1) Use Docker images. It is not very hard to work with Docker images 
however, it does add a bit of difficulty to your workload.

2) Use a Linux image in VirtualBox. It will only take few minutes and I'm 
sure will make you happier that dealing with Docker images. First, I would 
use exactly the same Linux version as your server and try to replicate its 
configuration.

2) If you are a big fan of Linux, you might want to install Linux and leave 
on a dual boot system. This is what I have. The only problem is though 
I rarely ever use the Windows boot, probably 3 times a year top, and every 
time I do I have a looot of updates to make.

On Friday, March 22, 2019 at 8:28:54 AM UTC-4, Chafid Ahmad wrote:
>
> Hi, I have a client who wanted to run a Django project that can run in 
> Ubuntu. As I don't have a UX machine to developed it, is it possible to 
> developed the project in Windows, but later export it to Ubuntu? My initial 
> plan is:
> - Developed the project with pycharm in windows
> - Upload the project to github
> - retrieve the project from github to an ubuntu virtual machine and test it
> The reason I don't want to developed the project in virtual machine is 
> that my hardware resource is limited, I don't want to share it if I don't 
> absolutely have to. 
> Is this possible? If not can anyone help me with another alternative 
> solution?
>
> Cheers
> Chafid
> -- 
>
>

-- 
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/b242bc73-a837-43e2-a615-df09ad8d1908%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to display file tree using Django. Help, please!

2019-02-08 Thread Mario R. Osorio
If you're just looking into just presenting trees, you might want to 
check How TO - Tree View 
(https://www.w3schools.com/howto/howto_js_treeview.asp) or Bootstrap Tree 
View 
(https://github.com/jonmiles/bootstrap-treeview, 
http://jonmiles.github.io/bootstrap-treeview/)

If you are looking for a way to create, persist and manipulate tree 
structures; you need to check django_trees 
(https://github.com/imtapps/django-trees)

HTH


On Friday, February 8, 2019 at 7:24:01 AM UTC-5, Yura wrote:
>
> Hello everyone! I really need help. I’ve got SQL table which contains 
> exhaustive files and folders information and I need to show tree of those 
> files on a website. But not only show, it’s supposed to be interactive, so 
> that a user can scroll, open folders and mark any of the items. 
> I think it might look like an example on the attached picture (or here, 
> example png link: https://yadi.sk/i/H3wzUMt_UmT3AQ ). 
> If someone can give advice how to implement this app in django that would 
> be really helpful, or maybe just any thoughts regarding it, I’d really 
> appreciate it.
>

-- 
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/6b089875-296f-4908-9582-71d4b1bcc0fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django payment through different methods

2019-01-22 Thread Mario R. Osorio
Take a look here: https://djangopackages.org/grids/g/payment-processing/

On Monday, January 21, 2019 at 7:36:23 PM UTC-5, Bikash Saud wrote:
>
> I'm trying to payment from different methods like paypal, or other way. I 
> did not have idea please help me
>

-- 
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/d6292dcb-827f-46e5-ada4-a25b0dee58dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Creation of database in real time and loading it in the DATABASES variable of Django;

2019-01-08 Thread Mario R. Osorio
I'm not an expert, but this article seems like a good start:

How to Configure Multiple Databases in Django the Simple Way
https://strongarm.io/blog/multiple-databases-in-django/

On Monday, January 7, 2019 at 1:49:15 PM UTC-5, Sanderson Carmona wrote:
>
> Good afternoon,
>
> I'm using the latest version of Django (2.x) and I'm having a rather 
> complicated task because of the lack of experience I have with the 
> Framework.
> To do: I need to use 1 bank as default and others created in real time for 
> the contract client in the company.
>
> Example: You purchased a service and when registering the system create a 
> database with standard tables for its use;
> When this client logs in the system will load information from the created 
> bank.
> To do this it should read in the database the name of the client's 
> database and load it into the DATABASES variable, that is, if not see 
> another way.
>
> If anyone can help me thank you very much, I already researched and did 
> not find anything on.
> Thank you
>

-- 
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/0a4fbe28-cd1d-4cc0-a3cc-00ec2c74fb40%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: simple boy start learn python

2019-01-07 Thread Mario R. Osorio
Sorry, I forgot to include the link for the book:
https://www.obeythetestinggoat.com/

Dtb/Gby
===
Mario R. Osorio
B.A.S. of Information Technology
A.S. of Computer Programming and Analysis
Web page: *http;//mario.osorio.solutions
<http://http%3B//mario.osorio.solutions>*
Email: *mario@osorio.solutions* 
*Just Choose Python!* <http://www.gentoogeek.org/files/choose_python.pdf>

“If I had asked people what they wanted, they would have said faster
horses.”
 ― Henry Ford




<http://goo.gl/t2Hzgo>
<https://m.do.co/c/63e2415dab7b>


On Mon, Jan 7, 2019 at 11:33 AM Mario R. Osorio 
wrote:

> These are some of the best resources I've ever found on the subject:
>
>
>-
>- Obey the Testing Goat! (You can buy they book or read it online for
>free)
>- TaskBuster Django Tutorial (might be a bit outdated but I'd still go
>thru it) <http://www.marinamele.com/taskbuster-django-tutorial>
>- Workshop: Test-Driven Web Development with Django
><https://test-driven-django-development.readthedocs.io/en/latest/>
>
>
> On Saturday, January 5, 2019 at 3:46:54 PM UTC-5, mw53...@gmail.com wrote:
>>
>> I know that you are exp in django, so I need you tell me the best way to
>> learn django is what ?
>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/2KCHCeK7XBQ/unsubscribe.
> To unsubscribe from this group and all its topics, 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/5765d003-8ebb-44b9-a22c-c19e97cabc57%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/5765d003-8ebb-44b9-a22c-c19e97cabc57%40googlegroups.com?utm_medium=email_source=footer>
> .
> 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/CAO2PNV4gUN0qPP19P2jYBaufJreAn45G%2BSrUKtsnQvmvMtKtLQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: simple boy start learn python

2019-01-07 Thread Mario R. Osorio
These are some of the best resources I've ever found on the subject:


   - 
   - Obey the Testing Goat! (You can buy they book or read it online for 
   free) 
   - TaskBuster Django Tutorial (might be a bit outdated but I'd still go 
   thru it) 
   - Workshop: Test-Driven Web Development with Django 
   
   

On Saturday, January 5, 2019 at 3:46:54 PM UTC-5, mw53...@gmail.com wrote:
>
> I know that you are exp in django, so I need you tell me the best way to 
> learn django is what ?
>
>

-- 
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/5765d003-8ebb-44b9-a22c-c19e97cabc57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Trigger actions independently of url request

2018-10-29 Thread Mario R. Osorio
I'm far from being an expert but I think yours is a rather simple operation 
that needs to be executed every n minutes.

I think that in the case you're explaining, Celery is an overkill. Why not 
go with a cron job?
You might want to create a combination of bash and python scripts to do 
exactly what you need but you'll have a whole lot less headaches.


On Monday, October 22, 2018 at 12:29:19 PM UTC-4, Charley Paulus wrote:
>
> Hi, 
>
> After reading the Django tutorial, my understanding (I hope I’m wrong) is 
> that the only way to trigger a function of a Django app is when someone on 
> the client side request the url related to that function. 
>
> But what if I want the server to run a function indenpendently of a url 
> call, for example: 
> - every 10 minutes 
> - when a pre-defined combination of variables become true 
>
> Where should such code live? 
>
> Thank you. 
> Best regards, 
> Charley

-- 
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/af077eff-9e90-44ae-8ae0-050e986e830a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django Produces Python?

2018-06-12 Thread Mario R. Osorio
I've tried multiple managed hosting and they all have limitations that will 
eventually go against your expansion needs. The best example I can think of 
is the fact that in most of these services you cannot compile, and some of 
python's libraries do require compiling.

I favor Virtual Private Servers and personally prefer DigitalOcean.com. 
They have a very nice price structure that starts at $5/month and even 
offer one-click applications, Django 1.8.7 among them. Not only that, their 
documentation is very complete and they have a tutorial for virtually 
everything, from configuring your server to securing and hardening its 
security. I would say DO is also a 'battery included' service when it comes 
to non managed server (and no, I'm not getting paid by DO!, I'm just a big 
fan...)

HTH!


On Sunday, March 26, 2017 at 11:24:13 AM UTC-4, Ed Sutherland wrote:
>
> I now understand the purpose and worth of Django. What, then, are the 
> questions I need to ask potential hosts? I'm leaning toward Linode, but 
> would also like affordable managed hosting.
>
>
>
>
>
>  On Sun, 26 Mar 2017 04:16:52 -0400 Lachlan Musicman > wrote 
>
> If you take James' answer and expand it a little, take a look at a Python 
> micro-framework like Pylons http://pylonsproject.org/
>
> It's smaller than Django and is a useful tool for a different type of 
> website.
>
> For instance take Authentication and Authorization - logins. Not every 
> site needs one. Django has it by default. If you don't need it, maybe 
> Pylons is a better fit. 
>
> But be aware - when you have to actually write some code that makes user 
> accounts and logins happen in Pylons, that's when you will discover that 
> Django's "batteries included" philosophy really works for some style of 
> projects.
>
> cheers
> L.
>
> --
> The most dangerous phrase in the language is, "We've always done it this 
> way."
>
> - Grace Hopper
>
> On 26 March 2017 at 15:52, James Bennett 
> > wrote:
>
> Python is a programming language. You can use it to write many types of 
> programs. For example, you can use it to write web applications (which run 
> on a web server, respond to HTTP requests, store their data in a database, 
> render HTML templates for output, etc.). But doing this from scratch would 
> require you to write many modules of Python code yourself, in order to 
> handle all the common and necessary parts of a typical web application.
>
> Django provides those things for you, already written, so that you do not 
> need to write them yourself. Instead, you can write only the things which 
> are truly unique to your specific application, and let already-written 
> modules from Django handle the rest.
>
> -- 
> 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...@googlegroups.com .
> To post to this group, send email to django...@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/CAL13Cg9n4Mk6W2QEG51yoY5cXn1tQ_N9ORhvv3k7GGCdW2Ob3A%40mail.gmail.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...@googlegroups.com .
> To post to this group, send email to django...@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/CAGBeqiO9QJ9N9%3DCj%2BsEnCsEn%2B02nwindxbzoYaxTY%2BV16vp%2BPQ%40mail.gmail.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/f66c4f9f-1344-4a2d-97b1-986359477b73%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: what does the below mentioned error means and how do i resolve this error.something is wrong with my admin.py file.Please comment:

2018-06-08 Thread Mario R. Osorio
Looks like you skiped a huge part of the tutorial. you might to go back...

On Thursday, June 7, 2018 at 11:08:15 AM UTC-4, Avitab Ayan Sarmah wrote:
>
> In windows powershell:
>
> ERRORS:
> : (admin.E108) The value of 
> 'list_display[0]' refers to 'question_text', which is not a callable, an 
> attribute of 'QuestionAdmin', or an attribute or method on 'polls.Question'.
> : (admin.E108) The value of 
> 'list_display[1]' refers to 'pub_date', which is not a callable, an 
> attribute of 'QuestionAdmin', or an attribute or method on 'polls.Question'.
> : (admin.E116) The value of 
> 'list_filter[0]' refers to 'pub_date', which does not refer to a Field.
>
> System check identified 3 issues (0 silenced).
>
> polls\models.py:
>
> import datetime
>
> from django.db import models
> from django.utils import timezone
>
>
> class Question(models.Model):
> #...
> def was_published_recently(self):
> now = timezone.now()
> return now - datetime.timedelta(days=1) <= self.pub_date <= now
> was_published_recently.admin_order_field = 'pub_date'
> was_published_recently.boolean = True
> was_published_recently.short_description = 'published recently?'
> class Choice(models.Model):
> #...
> def __str__(self):
> return self.choice_text
> question = models.ForeignKey(Question, on_delete=models.CASCADE)
> choice_text = models.CharField(max_length=200)
> votes = models.IntegerField(default=0)
>
>
> polls\admin.py:
>
>
> from django.contrib import admin
>
> from . models import Choice, Question
>
>
> class ChoiceInline(admin.TabularInline):
> model = Choice
> extra = 3
>
>
> class QuestionAdmin(admin.ModelAdmin):
> fieldsets = [
> (None,  {'fields': ['question_text']}),
> ('Date information',{'fields': ['pub_date'], 'classes': 
> ['collapse']}),
> ]
> inlines = [ChoiceInline]
> list_display = ('question_text', 'pub_date', 'was_published_recently')
> list_filter = ['pub_date']
>
> admin.site.register(Question, QuestionAdmin)
>
>
>

-- 
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/8c65b7f0-9ca7-4e07-8167-fb29274710e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How do you deal with two third party apps with the same App label?

2018-05-21 Thread Mario R. Osorio
Thanks Daniel,

I've read that material but could make much sense out of it (I'm sure its 
me) I did read it again today and I *think* I've got it. Will check it 
tonight and I'll let you know.

Thanks again



On Saturday, May 19, 2018 at 10:45:17 PM UTC-4, Daniel Germano Travieso 
wrote:
>
> Hello!
>
> As seen here on the documentation for Applications configuration for app 
> users, you can provide a custom app configuration for one of the third 
> party apps you are using on your project.
>
>
> https://docs.djangoproject.com/en/2.0/ref/applications/#for-application-users
>
> I believe this would solve the ImproperlyConfigured exception as on your 
> settings.py on your INSTALLED_APPS you would have the apps with different 
> names.
> Hope it helps!
>
> On Saturday, May 19, 2018 at 10:54:02 PM UTC-3, Mario R. Osorio wrote:
>>
>> Hello everyone,
>>
>> In  Django 2.0.5; I want to use python-twitter and allauth's twitter 
>> provider and both these apps use the same App label which results in  the 
>> *django.core.exceptions.ImproperlyConfigured: 
>> Application labels aren't unique* error
>>
>> I have searched the internet and found no solutions to this Issue and 
>> would really appreciate your input on this matter.
>>
>> Any and all comments and ideas are welcome.
>>
>>
>> TIA!
>>
>>

-- 
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/b62b32cc-5469-4cbf-92dd-3dd6941ee0a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How do you deal with two third party apps with the same App label?

2018-05-19 Thread Mario R. Osorio
Hello everyone,

In  Django 2.0.5; I want to use python-twitter and allauth's twitter 
provider and both these apps use the same App label which results in  the 
*django.core.exceptions.ImproperlyConfigured: 
Application labels aren't unique* error

I have searched the internet and found no solutions to this Issue and would 
really appreciate your input on this matter.

Any and all comments and ideas are welcome.


TIA!

-- 
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/bd00e367-8843-4960-addf-e7a312cabc3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Integrating cryptoassets.core library in django

2018-05-02 Thread Mario R. Osorio
You need to give more details, such as:


   - Did you PIP the application?
   - Did you remember to add it to INSTALLED_APPS?
   

On Wednesday, May 2, 2018 at 7:10:31 AM UTC-4, Hitesh Goyal wrote:
>
> Hi, 
> I am trying to configure the cryptoassets.core library for bitcoin 
> applications using the following url : -
> https://pypi.org/project/cryptoassets.django/
>  
> When i run the command :- 
>
> "python manage.py cryptoassets_helper_service" I am getting the following 
> error :- 
>
> ImportError: No module named 
> 'cryptoassets.core.backend.sochainwalletnotify'
>
> I want to ask where and how to configure the cryptoassets_helper_service. 
> Please suggest how can i integrate the library.
>

-- 
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/c7d30347-6a2f-4517-920a-6cadb4372cc9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Why was Roberto Rosario silently removed from the Django Software Foundation?

2016-11-13 Thread Mario R. Osorio
*puts on DSF's Outsider hat* (ooops, hes's an outsider anyways)

FROM MY PERSPECTIVE AND THE LITTLE DATA I COULD COLLECT:

Mr Rosario might just be going through a Morphine down because of the 
medical procedure he is going through (been there myself!). Some people 
just have a very bad time out of it.

I did however, gather that he is comparing the events in Portland to what 
he feels he is going thru with DSF ... Does he seriously think he is THE 
trump??

At least, it is very clear to me that is how he feels. I hope he gets 
better.

Now, and again, just looking at his twitter account ... he is the one that 
started mixing politics with business, which hasn't yet proven to be a good 
combination (yeah, trump was ellected, but thats not even half the fight)

Maybe if he, or DSF, would publish a dossier of the events, we the people, 
might be able to have a better understanding of the issue.

If on the other hand, it wasn't your intention to make this issue public 
and open for all and any comments, maybe you failed by publishing this in 
the wrong place.



On Saturday, November 12, 2016 at 2:23:17 PM UTC-5, grandth...@gmail.com 
wrote:
>
> Dear Community,
>
> Roberto Rosario 
>
> https://twitter.com/siloraptor/status/797123511764615168
>
> From the fine tweet: "@chrismcdonough The process was mostly silent and 
> stealth (just one email, cancellation of access, etc)."
>
> Why injure the community and aspiring coders? Roberto himself has stated 
> to have funded at least 10k in python projects including making a 
> statement, "We ourselves pulled the plug on corporate sponsorship, 
> fellowship and Django kickstarters."
>
> https://twitter.com/siloraptor/status/797104759807348736
> From the fine tweet: "The mentality in Portland is representative of the 
> mentality of the Django Software Foundation, my expulsion proves it #Django 
> #Python"
>
> Let me just be very clear, if this is how people in the open source world 
> are going to be acting, don't be surprised if people are let go over their 
> social justice actions or beliefs. These types of actions only result in 
> fracturing, hurting the Django, Python and ultimately the open source 
> community.
>
> I'd love someone from the Django Software Foundation to take to time to 
> legitimately explain why someone was ejected out of the Django Software 
> Foundation over their political views.
>
> Also explain to me why I should retain anyone who wants to engage in PC or 
> SJW culture, as I'm more apt to terminate those who are intolerant of 
> opposing views.
>
> Sincerely,
> The Elder
>

-- 
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/c436df26-abf5-4b21-b815-d234fdfa0996%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Running django on demand via my PyQt4 Standalone app

2016-10-25 Thread Mario R. Osorio
I used to do home automation, so I know you need an interface with very
high "WOW!" factor AND PORTABILITY. That is why I proposed you check kivy (
http://kivy.org). kivy is the kick-ass interface I'd use, bar none.

this of course my opinion and recomendation, but you know YAHOO.



Dtb/Gby
=======
Mario R. Osorio
A.S. of Computer Programming and Analysis
Web page: *http;//mario.osorio.solutions
<http://http%3B//mario.osorio.solutions>*
Email: *mario@osorio.solutions* <mario@osorio.solutions>
*Just Choose Python!* <http://www.gentoogeek.org/files/choose_python.pdf>

“If I had asked people what they wanted, they would have said faster
horses.”
 ― Henry Ford

On Tue, Oct 25, 2016 at 3:20 PM, Dam ian <damian.wilczek.1...@gmail.com>
wrote:

> Hi again,
>
> and thanks for the answer and Tips
>
> @Mario R. Osorio
> >I cannot understand is why would you need django for admin, but use some
> other standalone (desktop?) application for everything else.  You should
> try and stay either on the django or on the standalone application.
>
> i think i must add why i need to use a "desktop app" and a web server for
> the "desktop app" :). The desktop app i need for something like this
>
>
> <https://lh3.googleusercontent.com/-FHbBFldS-GI/WA-r9op5K0I/BGA/LazSWSQ28aUcEq2Bv7DTX9dWBkIe12eUgCLcB/s1600/img1.PNG>
>
> for the user to control all devices @home, its a home Automatisation
> Controlling UI (wirten in PyQt)and second part - the web part (django) i
> need to setup the whole system, to add new hardware micro controller to
> customize the whole UI. I could add the whole settings / customizing stuff
> to the UI but from the user experience side it would not be optimal, u know
> what i mean? This UI should be only to Control not to setup things.
>
>
> @all others
>
> now the SQL part in PyQt i do whit QSql and its ok for me,if i use django
> it's not a problem for me to use only for the web part the django way.
>
> Why i would use django because in the future i will develop some Smart
> Phone app to Control the system too and i read that django add
> automatically some API what make me easier to add the communication between
> the mobile app and my standalone application
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/django-users/KKWwFzk9Z5U/unsubscribe.
> To unsubscribe from this group and all its topics, 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/20b836f6-ca70-45e6-aa55-906cb125754e%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/20b836f6-ca70-45e6-aa55-906cb125754e%40googlegroups.com?utm_medium=email_source=footer>
> .
> 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/CAO2PNV7-hRtgVUh7m8uxYVRJQitBv-ge%3D-RKXmPfR0Gvhyy2tw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Running django on demand via my PyQt4 Standalone app

2016-10-25 Thread Mario R. Osorio
I cannot understand is why would you need django for admin, but use some 
other standalone (desktop?) application for everything else.  You should 
try and stay either on the django or on the standalone application.

If after further analysis you still think you need both, then I'd use 
django, along with a rest api such as Django REST framework (www.
django-rest-framework.org) or Tastypie (tastypieapi.org).

You might also ant to make use of kivy (kivy.org) for the user interface.

HTH
Mario Osorio

On Monday, October 24, 2016 at 7:14:52 AM UTC-4, Dam ian wrote:
>
> Hi,
>
> I work on some Smart Home UI / Controlling system using PyQt4, now I'm in 
> the point where i need a Web Server to share a "Admin Page" to let the user 
> change some Smart Home settings (via web page of course :p ). I searched 
> the internet for a answer / idea and I think that the django server would 
> be the best solution, e.g. like django my "APP" also use a SQLite DB. I 
> need that the server is running only if the user activate the "Admin Mode" 
> and want do some change to the UI / App and only locally.
>
> unfortunately i still learning python and my knowledge is not on the level 
> to do this in the right way and I thought, that maybe someone of you can 
> help me:
>
>
> Q1: Is it good idea to start a new QThread who runs the script 
> os.system("web/manage.py runserver")?
> Q2: If yes - how can i stop the server - maybe through terminating the 
> QThread?
> Q3: If no - what is the best method to start a django server on demand via 
> my PyQt4 App and to stop it?
> Q4: can i share my DB whit django, is this a good idea?
> Q5: can i access from django server my app components class, variable etc. 
> and vice versa ( if the server is running)?
> Q6: can u point me where i can find some documentation or example to get 
> closer to my goal?
>
>
> i know there many ways how to do this ( or not) but I would like to 
> achieve it via the "pythonic way" / best practices
> if someone from you can hep me I would be very grateful 
>
> Cheers Damian
>
> PS. Sorry for my not best english
>

-- 
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/a4dafc5f-4d77-4ed2-9d96-423eb6a8c893%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Custom Admin Command

2016-10-16 Thread Mario R. Osorio
Thanks a lot for your help Dylan,

Right after writing I noticed my mistake, I was naming the folder
my_app/management/command

I renamed it my_app/management/commands and voila!.

it worked like a charm.


Dtb/Gby
===
Mario R. Osorio
A.S. of Computer Programming and Analysis
Web page: *http;//mario.osorio.solutions
<http://http%3B//mario.osorio.solutions>*
Email: *mario@osorio.solutions* <mario@osorio.solutions>
*Just Choose Python!* <http://www.gentoogeek.org/files/choose_python.pdf>

“If I had asked people what they wanted, they would have said faster
horses.”
 ― Henry Ford




<http://goo.gl/t2Hzgo>
<https://m.do.co/c/63e2415dab7b>

On Sun, Oct 16, 2016 at 10:27 PM, Dylan Reinhold <dreinh...@gmail.com>
wrote:

> Is your my_command file named my_command.py?
>
> how are you calling it `manage.py my_command`?
>
> Dylan
>
> On Sun, Oct 16, 2016 at 7:04 PM, Mario R. Osorio <nimbiot...@gmail.com>
> wrote:
>
>>
>> By the way, there are *__init__.py* files in
>> both my_project/my_app/management/ and my_project/my_app/management/command
>> folders ...
>>
>>
>> On Sunday, October 16, 2016 at 9:58:25 PM UTC-4, Mario R. Osorio wrote:
>>>
>>> I am trying to implement a custom admin command. The class is located at
>>> mt_project/my_app/management/command/my_command
>>> and looks like this:
>>>
>>>
>>>
>>> class Command(BaseCommand):
>>>
>>> help = 'This is my command'
>>>
>>>
>>> def handle(self, *args, **options):
>>>
>>> ...
>>>
>>>
>>>
>>> My app is included in Installed_apps. I think I've covered all
>>> documented requirements yet; the command is just NOT available. manage.py
>>> tells me it is un "Unknown command"
>>>
>>> What am I doing wrong?
>>>
>>> Thanks a lot in advanced!
>>>
>>> --
>> 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/ms
>> gid/django-users/f679ba2c-cc77-41c6-a1b3-39e9482d5a61%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/f679ba2c-cc77-41c6-a1b3-39e9482d5a61%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/django-users/1PuWQKwfRcU/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CAHtg44B3%2BuGFj446pYKbHfzPHB1K_
> 3WUiTWa2DO0KgxQ66WjXg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHtg44B3%2BuGFj446pYKbHfzPHB1K_3WUiTWa2DO0KgxQ66WjXg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>
> 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/CAO2PNV7QJa_BwHD5UTSxRSNfuHh7vQef74C7ctFDUxV5uphOeA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Custom Admin Command

2016-10-16 Thread Mario R. Osorio

By the way, there are *__init__.py* files in 
both my_project/my_app/management/ and my_project/my_app/management/command 
folders ...


On Sunday, October 16, 2016 at 9:58:25 PM UTC-4, Mario R. Osorio wrote:
>
> I am trying to implement a custom admin command. The class is located at 
> mt_project/my_app/management/command/my_command
> and looks like this:
>
>  
>
> class Command(BaseCommand):
>
> help = 'This is my command'
>
>
> def handle(self, *args, **options):
>
> ...
>
>
>
> My app is included in Installed_apps. I think I've covered all documented 
> requirements yet; the command is just NOT available. manage.py tells me it 
> is un "Unknown command"
>
> What am I doing wrong?
>
> Thanks a lot in advanced!
>
>

-- 
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/f679ba2c-cc77-41c6-a1b3-39e9482d5a61%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Custom Admin Command

2016-10-16 Thread Mario R. Osorio
I am trying to implement a custom admin command. The class is located at 
mt_project/my_app/management/command/my_command
and looks like this:

 

class Command(BaseCommand):

help = 'This is my command'


def handle(self, *args, **options):

...



My app is included in Installed_apps. I think I've covered all documented 
requirements yet; the command is just NOT available. manage.py tells me it 
is un "Unknown command"

What am I doing wrong?

Thanks a lot in advanced!

-- 
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/f77931ca-39f6-4678-8670-316fc0f2e0a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Add rows in migrations?

2016-10-05 Thread Mario R. Osorio
You can do that with fixtures:

https://docs.djangoproject.com/en/1.10/howto/initial-data/



On Tuesday, October 4, 2016 at 7:21:07 PM UTC-4, Victor Porton wrote:
>
> After generating DB scheme, I need to add two rows with certain data to 
> certain table.
>
> How to do it?
>
> Can it be handled with migrations?
>
> A complication is that these two rows contain strings dependent on the 
> user's language.
>
> Can this be done?
>

-- 
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/5db3f602-f0b7-444c-82ee-4a51659dbfb3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: HTTP2 Server Push with Django?

2016-06-28 Thread Mario R. Osorio
Here are some resources:

   - Django Push HTTP Response to users 
   

   - Django Packages 
   - django-push-notifications 
   
   - Django-PuSH 
   - django-pushserver 
   - SwampDragon 

On Tuesday, June 28, 2016 at 8:46:26 AM UTC-4, Bobby Mozumder wrote:

> Does anyone know of an http/2 server with server push capability that can 
> work with Django? 
>  
> It looks like nginx supports http2 with uWSGI, but it doesn’t actually 
> support server push capability. 
>  
> I also found the h2o server, but it doesn’t look like it supports uWSGI 
> yet.. 
>  
> Any other options out there for http2 server push, preferably with 
> cache-aware server push? 
>  
> (I’d set http “Link” headers in my app to direct server push.) 
>  
> -bobby
>

-- 
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/0aaaeb31-dcd7-430c-973a-fa1a0c6331ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Looking for ways to improve my skills

2016-04-03 Thread Mario R. Osorio
Hi Devrhoid,

I'm not an expert myself but, as with anything else; it is nothing but your 
own needs that will improve your knowledge. I can recommend what I think is 
the very best Django tutorial EVER, bar none (
http://www.marinamele.com/taskbuster-django-tutorial) It does, 
however introduce you to a couple of intermediate to advanced programming 
techniques/paradigms, one of the being Test Driven Development (TDD). In 
all, that tutorial will teach you a few nice tricks. Get ready for some 
(very few) errors in the text as the author (+Marina Mele) is, like me, not 
English speaker. She is an EXCELLENT professional though and definitely 
knows how to get the best out of Django.

Good luck!

On Saturday, April 2, 2016 at 6:37:22 PM UTC-4, Devrhoid Davis wrote:
>
> Hi All, 
>
> I have been working with Python for just over 3 years now and have 
> recently taken up django. I have completed both the polls app and have 
> created an address book app by following a tutorial on youtube. I am 
> looking fro ways to improve my competence with django and possibly some end 
> to end website projects. Can anyone provide me with some links as to where 
> I could find resources for improving my skills and then avenues for using 
> these skills to generate income?
>
> Thanks in advance. 
>
> Regards,
> Devrhoid
>
>

-- 
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/2e385184-3e38-401e-b8f9-3a6eb1c42e94%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Development of web based image processing package

2016-03-10 Thread Mario R. Osorio
I know nothing about the subject, but I stumbled upon this article I think 
might be useful in your endeavor:

Fundamentals of Image Processing - behind the scenes 



On Thursday, March 3, 2016 at 12:47:56 PM UTC-5, Neha Chhattani wrote:
>
> hello
> i want to create a website that will do image processing in real time. i 
> want to load large tiff images i.e. images used in remote sensing and 
> satellite images. I want to do processing on satellite images. is it 
> possible to do this processing in website using django? If yes, how to 
> start with? what are the requirements for this? 
>

-- 
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/1fe1e6ac-ddee-4f24-9eea-4ba1b93e1f82%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Python on the web

2016-03-09 Thread Mario R. Osorio
There you are: http://hlevkin.com/Shell_progr/hellopython.htm

Please send the $20 to my paypal account...

On Monday, March 7, 2016 at 10:51:53 AM UTC-5, Gregg Turner wrote:
>
> Hey,
>
> Need a simple python script put into a website. It uses the requests 
> module.
>
> $20? Any takers? 
>

-- 
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/0ec5e37b-60a8-406b-bd5e-91f6040621dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Kind'a TL, but please DR - Need your thoughts

2016-02-01 Thread Mario R. Osorio

>
> y So this is effectively a feed aggregation engine. I would recommend 
> having a separate daemon running per media source, so that issues with one 
> media source do not affect the operations of another. 
>

 I never would have thought of this application as a feed aggregation 
engine, but I'm not really sure it fits the definition, will be digging 
deeper into this
 

> It would be possible to do everything with one daemon, but would be much 
> trickier to implement.
>

I agree 120%

 

> A second(?) python daemon would be waiting for those messages to be in the 
>> DB, process them, act accordingly to the objective of the application, and 
>> update the DB as expected. This process(es) might included complicated and 
>> numerous mathematical calculations, which might take seconds and even 
>> minutes to process.
>>
>
> Implementation here is less critical than your workflow design. 
>

I agree yet, this is the heart of my application. I understand it basically 
only involves the (web) application and the DBMS w/o any other external 
element; It is here where the whole shebang happens, but it might just be 
the DB application programmer in me though.

This could be implemented as a simple cron script on the host that runs 
> every few minutes. The trick is to determine whether or not a) records have 
> already been processed, b) certain records are currently processing, c) 
> records are available that have yet to be processed/examined. You can use 
> extra DB columns with the data to flag whether or not a process has already 
> started examining that row, so any subsequent calls to look for new data 
> can ignore those rows, even if the data hasn't finished processing. 
>

You gave me half my code there, but I'm not sure I want to trust a cron job 
for that. I know there are plenty of other options to do the dirty laundry 
here, such as queues, signals, sub-processes (and others?) but I kind'a 
feel comfortable leaving that communication exchange to the DBMS events as 
I see it; who would know better when 'something' happened but the DBMS 
itself?

The reason I want to do the application using Django is that all this HAS 
>> to have multiple web interfaces and, at the end of the day most media will 
>> c--ome through web, and have to be processed as http requests. Also, Django 
>> gives me a frame to make this work better organized and clean and I can 
>> make the application(s) DB agnostic.
>>
>
>  

> What do you mean by 'multiple web interfaces'? You mean multiple daemons 
> running on different listening ports? Different sites using the sites 
> framework? End-user browser vs. API? 
>

A combination of all that and probably a bit more ... This is something I 
left out trying to evade the TL;DNR responses: I'm considering having this 
app return nothing but probably json or xml code for other applications to 
"feed" from it. (here is that feed word again!), there are a myriad of 
possible ways this application can be used. This, BTW, would leave all the 
HTML/CSS/Javascrpt/etc "problems" to someone else ... it might just be the 
DB app programmer in me trying to avoid dealing with web issues, or I might 
just be trying to make things harder for me; this is something I haven't 
really thought much about.


Wanting the application to be DB agnostic does not mean that I don't have a 
>> choice: I know I have many options to communicate among different python 
>> processes, but I prefer to leave that to the DBMS. Of the open source DBMS 
>> I know of, only Firebird and PostgreSQL have event that can provide the 
>> communication between all the processes involved. I was able to create a 
>> very similar application in 2012 with Firebird, but this time I am being 
>> restricted to PostgreSQL, which I don't to oppose at all. That application 
>> did not involve http requests.
>>
>
> Prefer to leave what to the DBMS? The DBMS is responsible for storing and 
> indexing data, not process management. Some DBMS' may have some tricks to 
> perform such tasks, but I wouldn't necessarily want to rely on them unless 
> really necessary. If you're going to the trouble of writing separate 
> listening daemons, then they can talk to whatever backend you choose with 
> the right drivers.
>

I understand I'm having the DBMS do some of the process management, but it 
only goes as far as letting other processes know there is some job to be 
done, not even what needs to be done. I don't thing the overhead on the 
DBMS is going to be all that big.

This whole application is an idea that's been in my mind for some 7 years 
now. I even got as far as having a working prototype. I was just starting 
to learn Python then and my code is a shameful non pythonic mess. But it 
worked. I used Firebird as my RDMS, and all feeds (again?) would come in 
and out through an ad-hoc gmail account (with google voice for SMS 
messaging) I would get the input, process it and return the output within 
10 to 40 seconds, with the average at 

Re: Kind'a TL, but please DR - Need your thoughts

2016-02-01 Thread Mario R. Osorio

>
> I suggest that you use Celery.
>

A very useful tip! 

>
> If people are making HTTP requests of you, that is reason enough to choose 
> Django.
>

Well, let me put it this way; I felt in love with Python almost 7 years 
ago, but when I met Django, this love turned into an obsession you see; I 
had been programming database applications for over 35 years, never paying 
attention to a "strange" programming language "named after a snake" :D But 
not only that; it "comes" with LOTS of web frameworks that make sense to 
me,and treats DBMS with respect ... a match made in heaven!!

Just for the record, I have programmed in many languages over the years and 
never felt like this about any of them. Any PHP framework is out of the 
question for me; I can read and understand the code; but just the whole 
concept of PHP makes me want to puke (literally ... seriously); spaghetti 
code, dozens of functions that do almost the same thng, or dozens of names 
for the same function  No thanks, I pass!

>
> But do not wait for long calculations to complete before returning an HTTP 
> result.  Instead redirect to a page containing simple JavaScript that will 
> poll for a result.
>

As I said before, a DUH! moment ... or is it a senior moment ... I'm 
starting to get worried here.

I can assure you that this works well on Linux (you don't mention the 
> platform).  I have not used Celery (or Django, for that matter) on Windows 
> or Mac, but I'll bet that it runs fine, modulo the usual surprises about 
> file system differences and the way that Windows processes are "special".
>
I'm indeed using Linux; I'm not exactly a big fan of Windoze; have never 
been, though I started to feel more respect towards ir with the 8.1 
version. It really is a more robust OS ... I come from the dark ages of 
CPM->UNIX->DOS->WINDOWS and then I met Linux.
 

>
> Pretty much you just code in Python.  The exception is startup scripts to 
> boot time start/manage  the celery works, Apache/nginx front end for 
> Django, and any additional required communications processes.  I guess 
> there is also that small JavaScript to poll for a result.
>

Don't mean to start yet another heated discussion on web server preferences 
and trust me, I've done my research comparing Apache Vs NGINX, and I still 
feel this is one of the toughest decisions we will have to make ... I 
kind'a like NGINX, but its like the words "heavy duty" and "robust" can 
only be mentioned when you talk about Apache.

Many, many thanks for your input!

-- 
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/7d4ea14b-cf66-45a0-9634-e72e73748cff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Kind'a TL, but please DR - Need your thoughts

2016-02-01 Thread Mario R. Osorio
I understand HTTP requests are short lived, I just could not figure out how 
to handle the possible long responses, I' m rather new to python AND to web 
programming and when I start mixing things like WSGI my brain just burst. I 
know about celery, just never thought it would be my allied in this 
endeavor, but I did consider twisted though.

OTOH, not being a web programmer, it takes me a while to identify what I 
can do at the browser. You gave me a DUH! moment and I thank you for that.

-- 
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/f0bd8a12-2cc7-420e-baf7-a9c0782d59c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Kind'a TL, but please DR - Need your thoughts

2016-02-01 Thread Mario R. Osorio
Thanks to each and every one of you for the VERY HELPFUL recommendations 
you have given me (Avraham Serour, ke1g & James Schneider so far) I really 
got back more than I expected, but as I told a friend of mine; it was worth 
every minute of the almost 4 hours it took me to redact this question, not 
without errors though, because when I wrote "This is as simple as I can put 
it", I really should have said "This is as SUCCINCT as I can put it". I was 
just wanted to avoid TL;DNR responses.

More than giving me ideas, you guys basically gave everything but the code. 

MUCHAS GRACIAS again!

I will now touch on each of the thoughts each one of you shared.

-- 
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/2305c5e6-a764-449a-8704-6c04de112acd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Kind'a TL, but please DR - Need your thoughts

2016-01-31 Thread Mario R. Osorio
 

I need comments on an application I have been recently proposed. The way it 
is being envisioned at this moment is this:


One python daemon will be listening for different communications media such 
as email, web and SMS (web also). IMHO, it is necessary to have a daemon 
per each media. This daemon(s) will only make sure the messages are 
received from a validated source and put such messages in a DB


A second(?) python daemon would be waiting for those messages to be in the 
DB, process them, act accordingly to the objective of the application, and 
update the DB as expected. This process(es) might included complicated and 
numerous mathematical calculations, which might take seconds and even 
minutes to process.


A third(?) python daemon would be in charge of replying to the original 
message with the obtained results, but there might be other media channels 
involved, eg the message was received from a given email or SMS user, but 
the results have to be sent to multiple other email/SMS users.


The reason I want to do the application using Django is that all this HAS 
to have multiple web interfaces and, at the end of the day most media will 
come through web, and have to be processed as http requests. Also, Django 
gives me a frame to make this work better organized and clean and I can 
make the application(s) DB agnostic.


Wanting the application to be DB agnostic does not mean that I don't have a 
choice: I know I have many options to communicate among different python 
processes, but I prefer to leave that to the DBMS. Of the open source DBMS 
I know of, only Firebird and PostgreSQL have event that can provide the 
communication between all the processes involved. I was able to create a 
very similar application in 2012 with Firebird, but this time I am being 
restricted to PostgreSQL, which I don't to oppose at all. That application 
did not involve http requests.


My biggest concern at this point is this:

If most (if not all) requests to the application are going to be processed 
as http requests, what will happen to pending requests when one of them 
takes too long to reply? Is this something to be solved at the application 
level or at the server level?



This is as simple as I can put it. Any thoughts, comments, criticism or 
recommendations are welcome.


Thanks a lot in advanced!

-- 
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/802693b7-c00c-46bf-9902-688b27e21bbd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to show a list of products as checkboxes?

2016-01-08 Thread Mario R. Osorio
Hmmm... not THE expert here , but it looks like your original question is 
not properly stated as you asked about checkboxes and did NOT mention radio 
buttons. They might look very much alike but are 2 very different controls, 
with very different behavior and uses.


On Thursday, January 7, 2016 at 9:07:08 PM UTC-5, Michael Molloy wrote:
>
> Forgot to post the link to the guy who had this code: 
> http://devdens.blogspot.com/2014/04/django-multiple-choice-field-and-how-to.html
>

-- 
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/12a72b53-3ba8-455d-975b-709cf26882c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Choice and choice

2016-01-06 Thread Mario R. Osorio
Choice is a class and choice is an instance of that class.

You might want to check your knowledge of python before trying django...


On Wednesday, January 6, 2016 at 8:07:16 AM UTC-5, 林攀 wrote:
>
>
> dear:
>  in djano the first app   what is difference between Choice   and 
> choice ? I feel confused!
>
>
>
> --
> *林攀*
>
>
> 新的一年,让我陪你奋斗,让我陪你辛苦!-2016携手前行>> 
>

-- 
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/48b93f91-56d7-42d8-b7f7-a878fab1835a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I want to make todo List

2015-09-27 Thread Mario R. Osorio


Ram, are you doing this for homework??



On Saturday, September 26, 2015 at 6:46:56 AM UTC-4, Ram Lakhan Agarwal 
wrote:
>
> I want step by step procedure to make todolist 
>

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a262ee10-379b-4971-9b2d-01a0159a32d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Búsquedas en una aplicacion

2015-07-06 Thread Mario R. Osorio
Carlos, este grupo es en inglés.

Puedes buscar duda en español en:

https://mail.python.org/mailman/listinfo/python-es

Yo no te ayudo porque no tengo experiencia en el tema además, tu pregunta es un 
poco escueta. Falta mucha información

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/fd263def-64a9-4b3d-b8c5-f0596ee747b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Búsquedas en una aplicacion

2015-07-06 Thread Mario R. Osorio
Carlos, este grupo es en inglés.

Puedes buscar duda en español en:

https://mail.python.org/mailman/listinfo/python-es

Yo no te ayudo porque no tengo experiencia en el tema además, tu pregunta es un 
poco escueta. Falta mucha información

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0508e4df-a832-42b0-876d-700300bb23fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Búsquedas en una aplicacion

2015-07-06 Thread Mario R. Osorio
Carlos, este grupo es en inglés.

Puedes buscar duda en español en:

https://mail.python.org/mailman/listinfo/python-es

Yo no te ayudo porque no tengo experiencia en el tema además, tu pregunta es un 
poco escueta. Falta mucha información

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0926dbbb-f27e-44bc-808a-4bb4225c65a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Host a web application

2015-04-22 Thread Mario R. Osorio


www.pythonanywhere.com made it easier for me to deploy than heroku

On Wednesday, April 22, 2015 at 2:25:56 AM UTC-4, Kishan Mehta wrote:
>
> Hi ,
>
> I have to show my web application project work to a potential employer. 
> Is it possible to host the demo somewhere? Any guide on this? 
>
> Thanks for help,
> Kishankumar Mehta 
>

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/109e5f89-bc99-48a4-a0cd-02ab86f79545%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: inicio en django

2014-07-27 Thread Mario R. Osorio
No se si te mencione virtualenvwrapper que, aunque no es imperativo, te va 
a facilitar mucho la vida.



On Saturday, July 26, 2014 4:10:37 PM UTC-4, juantonio v wrote:
>
> hola tengo el Django-1.6.5.tar.gz de django, ahora como lo instalo?
>
>
> gracias!
>

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/cc1af56d-4a1e-4df8-9bef-146f269130a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: inicio en django

2014-07-27 Thread Mario R. Osorio
En primer lugar, no hace falta que vayas a pagar ningun curso de $95, eso 
es pura mierda. Especialmente habiendo TANTOS RECURSOS GRATIS sobre django 
en toda la internet. Por supuesto que el 80% quizas sea en ingles.

Desconozco tu experiencia, pero antes de comenzar a trabajar con django, es 
casi imperativo que aprendas a usar usar virtualenv, pip e easy_install.

Te envio algunos enlaces de interes para que te inicies:

   - Creación de entornos virtuales Python 
   

   - Cómo instalar un paquete Python con pip 
   
   - Configurar Django y MySQL en VirtualEnv 
   

   - Virtualenv 
   
   - Virtualenv: Aislando Nuestro Entorno Python 
   
   - Curso Django: Instalación y primera aplicación 
   

   - ¡Descubre Django! 
   - Tu primera aplicación Django, parte 1 
   
   - Empezando con Django 
   - Aprende DJango de Python desde cero 
   
   - 
   - Python Dominicana 006 - python.do, mezzanine y django 
   




On Saturday, July 26, 2014 4:10:37 PM UTC-4, juantonio v wrote:
>
> hola tengo el Django-1.6.5.tar.gz de django, ahora como lo instalo?
>
>
> gracias!
>

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c905a2f1-b3e5-4f8d-a46b-320ac44705e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Need help with pushing technology ... and a bit more ...

2014-01-27 Thread Mario R. Osorio
Background:
===
We are studying the possibility of creating a system that will have the 
following entities:
Customer(s) (appCustomer)
Service Provider(s) (appProviders) and
Manager(s)
Server(s)

appCustomers will have all appServices available to them and appServices 
will have at least one appManager and zero to many appServers.

Each one of these entities will run an application on android, ios and 
windoze phone at least, as well as (hopefully) linux, osx and windoze 
(these last three are needed for appManagers)

An appCustomer will use either an application or a given web site to 
request services via HTTP from the available appProviders.

Our system should immediately upon receiving this order, notify all 
involved appManagers and appServers, report back to appCustomer  who got 
notified of his/her request.

appManagers and appServers will interact with the system via applications 
in order to notify appCustomer/appManager(s) of any progress in serving the 
appService, until its completion.

All notification must be logged so that anyone involved in a given 
appService can check all activity and, for example, to allow appManagers to 
supervise the completion of a given appService request.

Reading the previous explanation I notice this is pretty much your common 
“Purchase Order System” except we need real time, bullet proof 
communications between all players, along with the possibility of SMS and 
mail capabilities as well as logs for all communication media.

Our system is to go live immediately with one (paying) customer 
representing around 100 appCustomers. We are expecting the live system to 
produce anywhere between 500 to 2000 notifications per day which is not a 
lot but (expected) growth will be exponential and might reach about a 
million notifications in about a year or two.

Observations:
=
I'd like to keep this project python/C/C++ only, or at least as much as 
possible.
I'm not a seasoned python/C/C++ programmer though; but I'm in l.o.v.e. with 
python and C and C++.
I understand even less about communications and I know I have to use some 
way to push all notifications, but I have not been able to find a solution 
that will work on all needed platforms (android, ios, windows phone, linux, 
osx and windows). I wouldn't mind using two or three different push 
technologies if that was the case but: 

Questions:
==
Isn't there a better way to push notifications?
Do I forcibly have to use a service such as “Urban Airship”, “Pushwoosh”, 
“Amazon SNS”, “Windows Azure Notification Hubs”, “Pushover”, “Prowl” or 
“Notify My Android”??
Would it be possible to build our own push service by using a combination 
of telnet, xmlrpc, websockets or xmpp along with twisted, tornado or 
gevent; living along with django and possible mezzanine in my “perfect 
python world”?
Am I asking too much or am I so lost I don't even make sense?

I've been reading about all these topics/products in the las couple of days 
and every line I read seems to get me the more confused...

When I was initially involved in this idea I thought it was all about 
finding a nice library for a good *real time communications protocol 
<https://groups.google.com/forum/#!topic/django-users/vZQ3C4DS73g>* but, as 
I said before; I know nothing about communications and in spite of all the 
good intentions of those answering that post; I am yet to make sense of 
everything.

I do not ask for a solution to my situation but at least some light as to 
what might be a good path to follow … I will make sure you confess a 
solution once I figure out what are you talking about :)

I will really appreciate and and all comments, ideas and recommendations … 
even epithets!

Thanks a lot in advanced!
Mario R. Osorio

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/211c15a3-2036-44e8-9fb5-02be6a5d0bea%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Which Real Time Communications Protocol

2014-01-08 Thread Mario R. Osorio
Thanks to both of you
On Jan 8, 2014 11:08 AM, "Nikolas Stevenson-Molnar" 
wrote:

> Thank you, that's a very good point! I'm so used to thinking about
> Django in the context of the request/response cycle that I didn't think
> about pairing it with a websocket framework to take on that task.
>
> _Nik
>
> On 1/8/2014 3:56 AM, Tom Evans wrote:
> > On Mon, Dec 30, 2013 at 7:14 PM, Nikolas Stevenson-Molnar
> >  wrote:
> >> The reason for this (someone please correct me if I'm wrong on this) is
> that
> >> Django isn't meant to hold connections indefinitely. Ideally you want
> to get
> >> a request and turn around a response as quick as possible. Using the
> >> nginx-push-stream-module, you let Nginx handle all the persistent
> >> connections (which it does very well with 10k+ connections).
> >>
> > I wouldn't say "wrong"
> >
> > Django provides WSGI connection adapters and a framework for handling
> > HTTP requests. These adapters and framework are great at handling
> > regular HTTP requests.
> >
> > However, Django is not *just* a WSGI connection adapter and a HTTP
> > framework, it is a python library for doing all kinds of things. You
> > can take any python websocket implementation and do things "in django"
> > with it - use your models, access your cache, render templates, create
> > and validate forms, etc - because django is simply another library you
> > can use whenever you are programming in python.
> >
> > Cheers
> >
> > Tom
> >
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/vZQ3C4DS73g/unsubscribe.
> To unsubscribe from this group and all its topics, 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 http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/52CD77F6.1000807%40consbio.org
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO2PNV4vO3%3D%2B5ynTbTc8GaYdVV_7Uh4tHwO6A2OV_Mt4H9%2Bnzw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Which Real Time Communications Protocol

2013-12-30 Thread Mario R. Osorio
Thanks!


Dtb/Gby
===
Mario R. Osorio

"If I had asked people what they wanted, they would have said faster
horses."
 -- Henry Ford

http://www.google.com/profiles/nimbiotics


On Fri, Dec 20, 2013 at 12:49 PM, Bill Freeman <ke1g...@gmail.com> wrote:

> WebSockets runs over standard HTTP or HTTPS connections, getting past
> firewalls and other restrictions (e.g.; the hotel WiFi will let you web
> browse, but not use other ports).  Since WebSockets is standard HTML5,
> libraries for it will become more and more common.  There are also older
> "push" technologies (COMET, long poll, etc.).
>
> You can also ad hoc something on these ports.
>
>
> On Fri, Dec 20, 2013 at 12:10 PM, Mario R. Osorio <nimbiot...@gmail.com>wrote:
>
>> Thanks a lot Serge!
>>
>>
>> Dtb/Gby
>> ===
>> Mario R. Osorio
>>
>> "If I had asked people what they wanted, they would have said faster
>> horses."
>>  -- Henry Ford
>>
>> http://www.google.com/profiles/nimbiotics
>>
>>
>> On Fri, Dec 20, 2013 at 12:01 PM, Sergiy Khohlov <skhoh...@gmail.com>wrote:
>>
>>> telnet and xmlrpc is a good choice.  I'm working on the similar project
>>> Many thanks,
>>>
>>> Serge
>>>
>>>
>>> +380 636150445
>>> skype: skhohlov
>>>
>>>
>>> On Fri, Dec 20, 2013 at 6:58 PM, Mario Osorio <nimbiot...@gmail.com>
>>> wrote:
>>> > My app will have to communicate different customers (Linux devices,
>>> Windoze
>>> > devices, iOS devices and Android devices at least).
>>> >
>>> > Overall, any of these customer devices will start one of many
>>> processes and
>>> > some of the other devices are required to respond by letting their
>>> users
>>> > know about the just initialized event. The original event might in turn
>>> > start related events with more or less the same behavior.
>>> >
>>> > I will be using email and SMS as 'secondary weapons', but I need some
>>> sort
>>> > of real time communications protocol as primary so whatever devices
>>> that are
>>> > connected and need, will be notified immediately. (I'm not sure I'm
>>> making
>>> > much sense at this point)
>>> >
>>> > What communications protocol can I use so that it:
>>> >
>>> > offers real time response
>>> > is as simple as possible
>>> > works in as many different customers as possible
>>> >
>>> > Thanks a lot in advanced!
>>> >
>>> > --
>>> > 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 http://groups.google.com/group/django-users.
>>> > To view this discussion on the web visit
>>> >
>>> https://groups.google.com/d/msgid/django-users/17ffdba6-041f-49b8-b688-aa5cdb4a7130%40googlegroups.com
>>> .
>>> > For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Django users" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/django-users/vZQ3C4DS73g/unsubscribe.
>>> To unsubscribe from this group and all its topics, 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 http://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CADTRxJP7Dfj0mt3cRvrJvy08e6hYBjSfa7cKkzEQ10TVcd%3DRrQ%40mail.gmail.com
>>> .
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>  --
>> 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 

Re: Which Real Time Communications Protocol

2013-12-20 Thread Mario R. Osorio
Thanks a lot Serge!


Dtb/Gby
===
Mario R. Osorio

"If I had asked people what they wanted, they would have said faster
horses."
 -- Henry Ford

http://www.google.com/profiles/nimbiotics


On Fri, Dec 20, 2013 at 12:01 PM, Sergiy Khohlov <skhoh...@gmail.com> wrote:

> telnet and xmlrpc is a good choice.  I'm working on the similar project
> Many thanks,
>
> Serge
>
>
> +380 636150445
> skype: skhohlov
>
>
> On Fri, Dec 20, 2013 at 6:58 PM, Mario Osorio <nimbiot...@gmail.com>
> wrote:
> > My app will have to communicate different customers (Linux devices,
> Windoze
> > devices, iOS devices and Android devices at least).
> >
> > Overall, any of these customer devices will start one of many processes
> and
> > some of the other devices are required to respond by letting their users
> > know about the just initialized event. The original event might in turn
> > start related events with more or less the same behavior.
> >
> > I will be using email and SMS as 'secondary weapons', but I need some
> sort
> > of real time communications protocol as primary so whatever devices that
> are
> > connected and need, will be notified immediately. (I'm not sure I'm
> making
> > much sense at this point)
> >
> > What communications protocol can I use so that it:
> >
> > offers real time response
> > is as simple as possible
> > works in as many different customers as possible
> >
> > Thanks a lot in advanced!
> >
> > --
> > 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 http://groups.google.com/group/django-users.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/django-users/17ffdba6-041f-49b8-b688-aa5cdb4a7130%40googlegroups.com
> .
> > For more options, visit https://groups.google.com/groups/opt_out.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/vZQ3C4DS73g/unsubscribe.
> To unsubscribe from this group and all its topics, 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 http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CADTRxJP7Dfj0mt3cRvrJvy08e6hYBjSfa7cKkzEQ10TVcd%3DRrQ%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO2PNV6N-gJ%3DW-PxqnrWj8D6JMqJPnLgshUV3_EdVn0SSA09bQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Django Tutorials

2013-10-28 Thread Mario R. Osorio
I will say it again ... I DID read thru some of the articles, if at least
the first few lines. I did like the feeling I get from the blog. IMHO,
everyones' comment here has been for the best and you should not feel low
confidence for any reason. On the contrary: Had you not received any
comments, THEN you should worry!

As for the typography ... I have myself made many such mistakes as choosing
totally useless typography. Now that I'm 50, with diabetes and sight issues
I've come to REALLY appreciate what good ONE SIZE FITS ALL  typography is.

In a few words: Just keep your confidence up, I like what I read!


Dtb/Gby
===
Mario R. Osorio
"... Begin with the end in mind ..."
http://www.google.com/profiles/nimbiotics


On Mon, Oct 28, 2013 at 12:38 PM, Nigel Legg <nigel.l...@gmail.com> wrote:

> Cool, I'll take another look at it then.
>
> Cheers, Nigel
> 07914 740972
>
>
>
> On 28 October 2013 16:35, Jasvir Singh <jassigrewa...@gmail.com> wrote:
>
>> On Mon, Oct 28, 2013 at 9:48 PM, Nigel Legg <nigel.l...@gmail.com> wrote:
>> > I have looked at this a few times, and now I have realised what was
>> bugging
>>
>> 
>>
>> > So I think that it would be much more useful and accessible if it was a
>> > series of pages rather than a series of blog posts.
>>
>> Even I was thinking this too.
>> Soon I'll shift this content to my personal domain where there will be
>> complete section for these tutorials in a continues manner.
>>
>> --
>>
>> Jasvir Singh Grewal
>> Blog:http://jasvirsinghgrewal91.wordpress.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 to django-users+unsubscr...@googlegroups.com.
>>
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAN_O85vrgKmJ5RA0yoi2j6R%2BJTgZeyKFrtjMxGLBv82WS03aow%40mail.gmail.com
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/DhMrcyK_XLY/unsubscribe.
> To unsubscribe from this group and all its topics, 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 http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CADeX7vwcA-OQtfYxwBO%3DnMiLUcGBtFp3vaaoJSBLtRnaUXdNPg%40mail.gmail.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO2PNV4p%3Dijy9m5iMC%3Dcew%2BW-8qHspaxQbSZZ%2Btb_CFCbAC4gg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: View not working / how can I test it in the shell?

2013-10-13 Thread Mario R. Osorio
Thanks Kelvin


Dtb/Gby
===
Mario R. Osorio
"... Begin with the end in mind ..."
http://www.google.com/profiles/nimbiotics


On Sun, Oct 13, 2013 at 12:34 AM, Kelvin Wong <wongo...@gmail.com> wrote:

> You need to understand what ALLOWED_HOSTS does if you want to ever deploy
> your app. Please read it.
>
> https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts
>
> Check your settings in the shell
>
> >>> from django.conf import settings as s
> >>> s.DEBUG
> True
> >>> s.ALLOWED_HOSTS
> ['.example.com', '192.168.0.2']
>
> If your DEBUG is False and your ALLOWED_HOSTS is an empty list [] then you
> will not get far. You will get a "SuspiciousOperation: Invalid HTTP_HOST
> header (you may need to set ALLOWED_HOSTS)" message.
>
> You can try putting something like this into the template (pretty much
> straight from the Django blog example), and it will tell you nicely when it
> has nothing matching your query or if your db is empty:
>
> {% block featured_posts %}
>   {% if featured_posts_list %}
> {% for blog_post in featured_posts_list %}
> {{ blog_post.title }}
> 
> {% endfor %}
>   {% else %}
> No posts found
>   {% endif %}
> {% endblock %}
>
> You might also want to ensure that your view is rendering the right
> template and that the template hierarchy is correct (ie. {% extends
> "my_templates/base.html" %} is at the top of your template and it is
> correct). If your parent template that you're extending doesn't have a
> block named 'featured_posts' then it won't display anywhere. You won't see
> the "No posts found" message nor will you see your list of blogs - nada.
>
> If there is an exception in the shell, it will print out a trace. This is
> an actual Dj1.5 trace from a made up exception I planted in the view. You
> can also put objects like your queryset into the Exception message and see
> if your set is producing what you think it should be.
>
> >>> from django.test import Client
> >>> c = Client()
> >>> c.get('/')
>
> Internal Server Error: /
> Traceback (most recent call last):
>   File
> "/Users/kelvin/.virtualenvs/myproject/lib/python2.7/site-packages/django/core/handlers/base.py",
> line 115, in get_response
> response = callback(request, *callback_args, **callback_kwargs)
>   File
> "/Users/kelvin/.virtualenvs/myproject/lib/python2.7/site-packages/django/views/generic/base.py",
> line 68, in view
> return self.dispatch(request, *args, **kwargs)
>   File
> "/Users/kelvin/.virtualenvs/myproject/lib/python2.7/site-packages/django/views/generic/base.py",
> line 86, in dispatch
> return handler(request, *args, **kwargs)
>   File
> "/Users/kelvin/repos/myproject_files/myproject_repo/myproject/firstweb/views.py",
> line 14, in get
> raise Exception("Freek out!")
> Exception: Freek out!
>
>
>
> On Friday, October 11, 2013 5:25:54 PM UTC-7, Mario Osorio wrote:
>
>> From the server; I am getting the page I need but the block where the
>> data from the view in question is supposed to be comes out empty.
>>
>> I am indeed geting the ALLOWED_HOSTS warning, which I don't fully
>> understand and don't know hoe to fix. I do have ALLOWED_HOSTS =
>> ('localhost', '.local') and DEBUG = True as I read in Rod's excellent
>> tutorial<http://rodmtech.net/docs/mezzanine/a-mezzanine-tutorial-take-2/>,
>> but that did not help.
>>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/jLHmh2-Ami0/unsubscribe.
> To unsubscribe from this group and all its topics, 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 http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/997818db-a73c-40d2-9e81-386b533609b6%40googlegroups.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO2PNV42VQXDXYQ3apo3vkpbdNHSnEue9u%3D0BAEo1-J2V4c9Bg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: View not working / how can I test it in the shell?

2013-10-11 Thread Mario R. Osorio
>From the server; I am getting the page I need but the block where the data
from the view in question is supposed to be comes out empty.

>From the django.test.client's Client() response.status.code is 200.

I am indeed geting the ALLOWED_HOSTS warning, which I don't fully
understand and don't know hoe to fix. I do have ALLOWED_HOSTS =
('localhost', '.local') and DEBUG = True as I read in Rod's excellent
tutorial ,
but that did not help.

Now, I dod not see that or any warning whatsoever as I start the shell, its
only when I start the server that it shows. I have gotten 500 errors though.

I reported not seeing anything cause well; I did not know exactly what to
expect from the test tool, which I now understand a bit more. In the mean
time; I'm still not getting any data from my view and I still don't know
how to test it in the shell.

Call my whatever you want, but I've been working on this issue for almost 3
days now: reading the docs, googling, reading the forums, asking, googling,
asking, reading more articles and I still don't know where I'm standing.

I still don' know if my issue has to do with a bad written view or a bad
located view, or a bad template, or something else.

SInce I understand more about databases than I do python or django or
mezzanine or web app programming for that matter; I'd like to start by
checking whether or not y view is returning what it is meant to and then
move to other possibilities.

BTW yes, I am 120% positive there is data in my db that meets the criteria
I'm trying to put in my view: I only have 7 records and 3 of them do meet
the criteria.

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO2PNV5XQ8UrvSLhna2ZDG%2BUaN4gvZyAuvqer8sR07k5VqDs_g%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.