Re: Django apk

2019-06-12 Thread Juan Pablo Romero Bernal
Hi, I think you have some alternatives: 1. Build an android native app (or using some cross-platform framework) that use your django app as an API (you can use django rest framework to make this task). 2. Build a PWA and use (as above) your django app as an API. 3. Use Briefcase [1] (project un

Re: Django apk

2019-06-12 Thread Lutalo Bbosa joseph
convert django application to progressive web app by using service workers then this can run on any device be it android or u search about converting PWA 2 APK to make an apk On Wed, Jun 12, 2019 at 7:01 PM Nebojsa Hajdukovic < nebojsa.zero...@gmail.com> wrote: > U can use django for beckend, an

Re: Django channel 2: do I have to prefix value of 'type' (the listening consumer method) of group_send with consumer class name if the consumer is a different one

2019-06-12 Thread Arean Bbay
Only the StudentConsumer has assignQuiz, the InstructorConsumer doesn't have. So, you were saying so long as the method is invoked on the group that the StudentConsumer belongs to, there should be no problem? On Wednesday, June 12, 2019 at 8:43:35 PM UTC-7, Ahmed Ishtiaque wrote: > > If my Cha

Re: Django channel 2: do I have to prefix value of 'type' (the listening consumer method) of group_send with consumer class name if the consumer is a different one

2019-06-12 Thread Ahmed Ishtiaque
If my Channels 2 knowledge serves me right, your group names for these two consumers should be unique. The group names should determine which consumer's assignQuiz method is executed. Hope this helps! On Wed, Jun 12, 2019 at 9:25 PM Arean Bbay wrote: > I have 2 consumers, namely StudentConsumer

Django channel 2: do I have to prefix value of 'type' (the listening consumer method) of group_send with consumer class name if the consumer is a different one

2019-06-12 Thread Arean Bbay
I have 2 consumers, namely StudentConsumer and InstructorConsumer.So if the url is: ws://quizz_poll//student, it will be routed to the former. otherwise ws://quizz_poll//instructor, then it will be routed to the latter. Within studentConsumer is a assignQuizzz(...) method. What I want to do is t

Re: How can I send an outlook mail from angular using django

2019-06-12 Thread Taylor Hughes-Scott
I'm not so sure about sending outlook email through django. However i do know django has a basic email sending built in have you had a look at that? https://docs.djangoproject.com/en/2.2/topics/email/ On Thu., 13 Jun. 2019, 10:41 am Sai Aravind, wrote: > How can I send an outlook mail from angul

Re: parse xml from url to database

2019-06-12 Thread Taylor Hughes-Scott
Are you able to provide an example url or xml file. That would help to figure out why no listings are created. On Thu., 13 Jun. 2019, 9:04 am Ewen Le Bihan, wrote: > Hi, where does prof.xml_ky comes from ? > > Le mercredi 12 juin 2019 18:22:01 UTC+2, Nuno Vieira a écrit : >> >> Hi there. >> >>

How can I send an outlook mail from angular using django

2019-06-12 Thread Sai Aravind
How can I send an outlook mail from angular using django can u please provide a y document 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

Re: parse xml from url to database

2019-06-12 Thread Ewen Le Bihan
Hi, where does prof.xml_ky comes from ? Le mercredi 12 juin 2019 18:22:01 UTC+2, Nuno Vieira a écrit : > > Hi there. > > I´m having some problems on parsing a real estate xml to database. > The user profile have url field to import properties automatically from > xml feed (url). The user can inse

Re: my file uploads missing/deleted

2019-06-12 Thread James Farris
This python package may be a better choice for you, since I assume you want all user generated content (images) to be stored in Dropbox. This has pretty good documentation. https://pypi.org/project/django-dropbox-storage/ If you use this package, remove the sample code I sent On Wed, Jun 12, 20

Re: my file uploads missing/deleted

2019-06-12 Thread omar ahmed
i added this function at the end of views.py file def connect_to_dropbox(): dbx = dropbox.Dropbox(‘your access token) dbx.users_get_current_account() and i put given access token from dropbox then what about call do you mean in any view function that will show page included images add co

Re: my file uploads missing/deleted

2019-06-12 Thread James Farris
You would add this code to the views.py file, which is where the business logic goes. https://docs.djangoproject.com/en/2.2/topics/http/views/ Likely would add a class with properties and methods or a definition (a function) like below: For example in your apps views.py file: def connect_to_dro

Re: my file uploads missing/deleted

2019-06-12 Thread omar ahmed
i opened the documentation for django-storages ... and i installed Dropbox in my environment and i created my app folder but i didn't complete docs . somethings not clear ... like : Link an account dbx = dropbox.Dropbox('YOUR_ACCESS_TOKEN') dbx.users_get_current_account() Try some API requests

Re: my file uploads missing/deleted

2019-06-12 Thread omar ahmed
can django-imagekit upload my images without (Dropbox or AWS s3 ) ? On Wednesday, June 12, 2019 at 4:34:23 PM UTC+2, Joe Reitman wrote: > > Omar, > > To upload images from the Admin panel, you will have to configure your > apps' admin.py file. I use the django-imagekit package to manipulate user

Confused with deleted migrations

2019-06-12 Thread Mohammad Etemaddar
Hey folks After uploading the app to the server, I got problems by local migrations in development. So deleted the migrations and local sqlite db (Server uses MySQL). After more development, uploaded the whole project to the server and overwrite the files. And typed migrate on server. I don't kn

parse xml from url to database

2019-06-12 Thread Nuno Vieira
Hi there. I´m having some problems on parsing a real estate xml to database. The user profile have url field to import properties automatically from xml feed (url). The user can insert mannually or automatically, if the user insert the url feed then it should be able to get the objects and save

Re: Django apk

2019-06-12 Thread Nebojsa Hajdukovic
U can use django for beckend, and with rest api make apk with flutter, ionic etc sre, 12. jun 2019. 17:55 Kalathiappan je napisao/la: > It is possible by anyway that an Django application could be converted > into an fully functional apk. > > -- > You received this message because you are subscr

Django apk

2019-06-12 Thread Kalathiappan
It is possible by anyway that an Django application could be converted into an fully functional apk. -- 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-user

Re: Djano rest api

2019-06-12 Thread Ahmed Ishtiaque
I think DRF has pretty good examples of API designs, even though I can't point you to a specifically constructed API for you to look at. On Wed, Jun 12, 2019 at 10:23 AM Rob W wrote: > Hi all, > > I need to see a django rest api, with proper endpoint desig

Re: my file uploads missing/deleted

2019-06-12 Thread Joe Reitman
Omar, To upload images from the Admin panel, you will have to configure your apps' admin.py file. I use the django-imagekit package to manipulate user uploaded images. This package also provides the ability to upload images via the Admin panel with a couple lines of code. Here is my Admin.py co

Djano rest api

2019-06-12 Thread Rob W
Hi all, I need to see a django rest api, with proper endpoint design - REST-ish by using paths, HTTP methods, response codes, JSONs, errors returned in JSON, Anyone have this already completed that I can take a look at? -- You received this message because you are subscribed to the Google Grou

Server Setup Error

2019-06-12 Thread Soumen Khatua
Hi Folks, After run this command: sudo systemctl status gunicorn *● gunicorn.service - gunicorn daemon Loaded: loaded (/etc/systemd/system/gunicorn.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2019-06-12 14:01:44 UTC; 10min ago Proces

Re: mysqlclient installation error

2019-06-12 Thread Emmanuel Simeon
Links to resources I used to help me get MySQL working on Django Visual Studio Build Tools Installer - Link MySQL DB and Connectors Web Installer - Link (I downloa