Re: Using the URLconf defined in polls.urls, Django tried these URL patterns, in this order

2018-10-22 Thread Manjunath
Your project urls are set to address starting with admin & polls. You can browse *localhost:8000/polls/* On Monday, October 22, 2018 at 11:06:22 PM UTC+5:30, Bugs Bunny wrote: > > Regards for the answers this is my input > > On Sun, Oct 21, 2018 at 8:15 AM Motaz Hejaze > wrote: > >> first , no

Django auto-deletes field related to MySQL Transactions

2018-10-22 Thread RyanW
I have a Django site I'm developing, which I've connected to a MySQL db. I haven't deployed into production yet, as I'm still working on a couple of things, however I leave the server running in development for initial data entry. I've noticed that some of the records already inputted gets

Doc on deploying production website using django

2018-10-22 Thread ah
Hi, Is there a detailed comprehensive documentation on how to deploy a production website using django with different options like Gunicorn or uWSGI with servers like nginx or apache and dB postgres. Thanks -- You received this message because you are subscribed to the Google Groups "Django

Meeting scheduling package

2018-10-22 Thread Am Stat
Hi there, I'd like to to create a meeting scheduling web app so users can send a private meeting invitation to other users, recipients can either accept or reject a meeting invite. Originator can edit or cancel the meeting after it was accepted, etc., some basic functions. I don't want to

Re: Trigger actions independently of url request

2018-10-22 Thread Charley Paulus
Hi Andrew, Thank you for your answer. To better clarify my need, here is one use case: 1) I would like my server (where Django is) to ping a remote address (let's say google.com) every 10 minutes, and put the result (communication ok or not) in a Django-generated database. 2) Then I will have

Re: Django dynamic form class creation at runtime

2018-10-22 Thread RONAK JAIN
You can create Model and configure admin then you will get your way. -- 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.

RE: Creating seperate unique ids within the same table

2018-10-22 Thread Matthew Pava
Very fascinating. There is a remark from Eric Sheridan, though, that discusses this: "I think that anytime database primary keys are exposed, an access control rule is required. There is no way to practically DOR all database primary keys in a real enterprise or post-enterprise system." The

Re: test error

2018-10-22 Thread Andréas Kühne
Hi Joel, The fact that you are using Django 2.2 has nothing to do with if f strings are supported. f-strings are a part of the python language. You need to have at least version 3.6 installed to be able to use f-strings. Check your python version by writing : python --version in a command shell.

Re: Cannot deploy Django project on Heroku from a Ubuntu 18.04 laptop

2018-10-22 Thread Andréas Kühne
The problem you are having has nothing to do with the python version. What heroku is saying is that you should change to python 3.6.6 which you do by adding a file to the project - see https://devcenter.heroku.com/articles/deploying-python. The problem you are getting (and that hinders you from

Re: Creating seperate unique ids within the same table

2018-10-22 Thread bill . torcaso . oxfam
Joel said this was a requirement: One of the important criteria I had was that these IDs should be easily memorable. Unfortunately UUIDs are not memorable, being too long to remember. A primary key that appears in a URL is just an implementation detail - the implementation could change, and

Re: Trigger actions independently of url request

2018-10-22 Thread Andrew Pinkham
On Oct 22, 2018, at 12:08, Charley Paulus wrote: > 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. That is correct. A view

Re: Need help with CDN on Django App using heroku

2018-10-22 Thread Andrew Pinkham
On Oct 22, 2018, at 11:53, Akash Purandare wrote: > However the issue is not with Whitenoise. Whitenoise can be used to serve > static files, yes. But how do I use it to serve media assets in the project? Sorry, missed the media part. Michal is right, you will need to install and configure

Re: Creating seperate unique ids within the same table

2018-10-22 Thread Andrew Pinkham
On Oct 22, 2018, at 12:29, Matthew Pava wrote: > I am curious why you think it is anti-practice to expose primary keys for > user-visible purposes. > My URLs all have the PK to the object in them, and any advanced user would be > able to “reverse engineer” a URL if they guess the PK of an

RE: Creating seperate unique ids within the same table

2018-10-22 Thread Matthew Pava
I am curious why you think it is anti-practice to expose primary keys for user-visible purposes. My URLs all have the PK to the object in them, and any advanced user would be able to “reverse engineer” a URL if they guess the PK of an object—and that’s okay. Even Django tutorials suggest using

Re: Where to start - New to Django and Python

2018-10-22 Thread manu . pascual . luna
I don't know if it's the best book but I'm enjoying http://www.obeythetestinggoat.com. I like the TDD approach for learning a new technology. Also you can

Trigger actions independently of url request

2018-10-22 Thread Charley Paulus
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

Dynamic from class creation at runtime

2018-10-22 Thread Daniel Gola
Hi There, do you have any experience with dynamic form class (inherited from django.forms.Form) creation at runtime? How to achieve it? I will be grateful for your advice. Regards Daniel -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Django dynamic form class creation at runtime

2018-10-22 Thread Daniel Gola
Hi There, do you have any experience with dynamic form class creation at runtime? How to achieve it? I will be grateful for your advice. Regards Daniel -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Cannot deploy Django project on Heroku from a Ubuntu 18.04 laptop

2018-10-22 Thread TimT Vogt
https://devcenter.heroku.com/articles/deploying-python Verstuurd vanaf mijn iPhone > Op 22 okt. 2018 om 17:52 heeft Gear Crew het > volgende geschreven: > > without deploy run this page and show the same error > >> On Monday, 22 October 2018 14:22:05 UTC+2, Mo-rema07 wrote: >> Hello people,

Re: Need help with CDN on Django App using heroku

2018-10-22 Thread Akash Purandare
Thank you for the fast reply. However the issue is not with Whitenoise. Whitenoise can be used to serve static files, yes. But how do I use it to serve media assets in the project? On Monday, October 22, 2018 at 9:11:02 PM UTC+5:30, Andrew Pinkham wrote: > >

Re: Cannot deploy Django project on Heroku from a Ubuntu 18.04 laptop

2018-10-22 Thread Gear Crew
without deploy run this page and show the same error On Monday, 22 October 2018 14:22:05 UTC+2, Mo-rema07 wrote: > > Hello people, > > Can I please get help? I am a noob using a Lenovo V110 running Ubuntu > 18.04. I am getting an error that I am using python 3.6.5 instead of > 3.6.6. However

Re: Need help with CDN on Django App using heroku

2018-10-22 Thread Michal Petrucha
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Mon, Oct 22, 2018 at 08:38:25AM -0700, Akash Purandare wrote: > I am trying to serve both static and media files on Heroku by using an S3 > bucket, but I do not know how to properly configure the settings.py for the > same. > Does anyone know

Re: Need help with CDN on Django App using heroku

2018-10-22 Thread Andrew Pinkham
https://devcenter.heroku.com/articles/django-assets http://whitenoise.evans.io/en/stable/django.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

Need help with CDN on Django App using heroku

2018-10-22 Thread Akash Purandare
I am trying to serve both static and media files on Heroku by using an S3 bucket, but I do not know how to properly configure the settings.py for the same. Does anyone know how to do it? If you do, please direct me to the correct set of information. -- You received this message because you

Re: Cannot deploy Django project on Heroku from a Ubuntu 18.04 laptop

2018-10-22 Thread Akash Purandare
You can use Pipenv to specify the version of python to Heroku. Personally, I have used upto Python 3.7 to deploy my Django projects, seems to work best with Pipenv On Monday, October 22, 2018 at 5:52:05 PM UTC+5:30, Mo-rema07 wrote: > > Hello people, > > Can I please get help? I am a noob using

Re: Creating seperate unique ids within the same table

2018-10-22 Thread bill . torcaso . oxfam
Joel, I completely agree that UUIDs are not memorable. I still think you would be well-served to make a UUID the basis for uniquely defining a person. If you want to further add a short name, you could make an object class that has a UUID and, say, an 8-digit number. If you assert that the

Re: test error

2018-10-22 Thread Joel Mathew
Why did you say that? I'm using django 2.2 and f strings are indeed supported. Sincerely yours, Joel G Mathew On Sun, 21 Oct 2018 at 18:05, Motaz Hejaze wrote: > > f'{}' is not supported > > On Sun, Oct 21, 2018 at 2:29 PM Joel wrote: >> >> What is your version of python? f strings were

Re: Creating seperate unique ids within the same table

2018-10-22 Thread Joel Mathew
Thank you Bill. I had a look at UUIDs. One of the important criteria I had was that these IDs should be easily memorable. Unfortunately UUIDs are not memorable, being too long to remember. :( Sincerely yours, Joel G Mathew On Mon, 22 Oct 2018 at 19:40, wrote: > > Hello all, > > The previous

Re: Creating seperate unique ids within the same table

2018-10-22 Thread bill . torcaso . oxfam
Hello all, The previous discussion shows a method that will work. but I think it has disadvantages, and I want to suggest another approach. The disadvantage of using a primary key from a table, any table, is that you are committing to that table and that primary key for all eternity. this

RE: How can I implement built in signals, for my app?

2018-10-22 Thread Matthew Pava
You may want to look at this middleware package that will automatically audit user logins. https://github.com/muccg/django-useraudit Also, in using AppConfigs, avoid using default_app_config as stated here: https://docs.djangoproject.com/en/2.1/ref/applications/#configuring-applications "New

Re: generate username and password

2018-10-22 Thread fatoubinetou196
Merxi Andrew!!! Le lundi 22 octobre 2018 13:27:22 UTC, Andrew Pinkham a écrit : > > Au sujet d'utilisateurs avec email comme pseudonyme, j’ai créé (avec > Russell Keith-Magee) un projet qui a comme but de fournir des classes et > modèles qui aident a la création d'utilisateurs custom. > >

Re: generate username and password

2018-10-22 Thread Andrew Pinkham
Au sujet d'utilisateurs avec email comme pseudonyme, j’ai créé (avec Russell Keith-Magee) un projet qui a comme but de fournir des classes et modèles qui aident a la création d'utilisateurs custom. https://django-improved-user.readthedocs.io/en/latest/quickstart.html

Re: Cannot deploy Django project on Heroku from a Ubuntu 18.04 laptop

2018-10-22 Thread TimT Vogt
Python 3.6.5 is not supported. You need to downgrade to supported python version or deploy to python anywhere Verstuurd vanaf mijn iPhone > Op 22 okt. 2018 om 14:20 heeft Mo-rema07 het > volgende geschreven: > U > Hello people, > > Can I please get help? I am a noob using a Lenovo V110

Re: Where to start - New to Django and Python

2018-10-22 Thread Joel
If you don't know python, spend time on basic language and structure before starting django. The python documentation has a good tutorial. The courses on udemy are good. For learning django, the official django tutorial set is sufficient. On Mon, 22 Oct, 2018, 5:31 PM Lokendar Singh, wrote: >

Re: Where to start - New to Django and Python

2018-10-22 Thread Mo-rema07
I have found The Django Book to be a very good book to get a handle of Djangoa and it's philosophy. On Monday, October 22, 2018 at 2:02:01 PM UTC+2, Lokendar Singh wrote: > > Hi Community, > > I'm new to django and python, however I've experience in development. > >

Where to start - New to Django and Python

2018-10-22 Thread Lokendar Singh
Hi Community, I'm new to django and python, however I've experience in development. Can someone suggest me the best book/content/tutor to enhance my skills as a lead developer? Currently I'm going through django documentation. Thanks in advance! Lokendar -- You received this message

Re: API Django

2018-10-22 Thread Phako Perez
Thanks Vinod for your quick response, I did, in addition I used -U (capital) instead (-u), however I got error like Method GET not allowed. Method Not Allowed: /schedule/3/ [22/Oct/2018 06:13:50] "GET /schedule/3/ HTTP/1.1" 405 40 On Mon, Oct 22, 2018 at 1:02 AM 'Vinod Kumar' via Django users <

Re: API Django

2018-10-22 Thread 'Vinod Kumar' via Django users
Remove Isauthenticated from rest_framework in settings.py On Mon, Oct 22, 2018, 11:22 AM Phako Perez <13.phak...@gmail.com> wrote: > Hi all, > > i'm really new on Django, trying to create an RESTful API, and getting > this error: > > curl -i -U Elly:Elly -H "Content-Type: application/json" -X