Re: Require an inventory model tutorial in Django

2017-12-01 Thread Heenashree Khandelwal
I am definitely going to try this. On Friday, 1 December 2017 20:45:23 UTC+5:30, sacrac wrote: > > Hi, if you have the db, try this for auto-generate complete models. > > https://docs.djangoproject.com/en/1.11/howto/legacy-databases/#auto-generate-the-models > > cheers > > On Fri, Dec 1, 2017 at

Re: Require an inventory model tutorial in Django

2017-12-01 Thread Heenashree Khandelwal
Hi Jason, thanks for your response. I actually had gone through tutorials and I was able to get the idea of how the ORM works but in this scenario, since this is just the first few steps of the project, I have issues like, 1. A form that takes the input from user (requirements in the table). The

Login form error not showing up for wrong username/password combo

2017-12-01 Thread Tom Tanner
I have this code in my login form. {% for field in login_form %} {{ field }} {% if field.errors %} {{ field.errors.as_text|cut:"* "|escape }} {% endif %} {% endfor %} The user must enter a valid email address in the "username" field. If the user enters a string not formatted like an e

Re: How do I customize registration form HTML?

2017-12-01 Thread Tom Tanner
Where can I find all the options like {{ form.name }} ? On Friday, December 1, 2017 at 9:27:21 AM UTC-5, yingi keme wrote: > > > > Yingi Kem > > On 1 Dec 2017, at 3:25 PM, yingi keme > > wrote: > > Intead of rendering it with the as_p. You can render them individually. > ie > > {{form.name}} > {{

Re: authentication by ldap server

2017-12-01 Thread Mario Gudelj
You should use django-auth-ldap. It will give you the ability to bind ldap attributes with the attributes from your user model using a dict inside settings. It’ll also get the users’ groups and create those groups inside Django. So try plugging that in and come back if you get stuck. All you really

Re: How do I customize registration form HTML?

2017-12-01 Thread Mario Gudelj
I’d recommend you to look at crispy forms as well. On Sat, 2 Dec 2017 at 1:29 am, yingi keme wrote: > Hey, i made a mistake in the previous reply. Its widget and not widgets. > The correct code is: > > > Intead of rendering it with the as_p. You can render them individually. > ie > > {{form.name

Problem when trying to display field name on admin panel

2017-12-01 Thread Kubilay Yazoğlu
Hello. It gives error when I click on my app name in admin panel because of the "ratings" field. Without it, it loads fine. Error: KeyError at /admin/photo/photo/ 'manager' Error during template rendering In template C:\Users\Root\Desktop\PhotashBackend\sanal\lib\site-packages\django\contrib

Re: Getting channels 2 to work

2017-12-01 Thread Andrew Godwin
Hi John, It's not in an end-user-useable state quite yet, so apologies for it being hard to install. Crucially, the docs on ASGI_APPLICATION aren't written yet as I'm still working on authentication stuff! A brief guide is: - Make an asgi.py as specified in http://channels.readthedocs.io/en/2.0

Re: İ want to setup a server at home for testing and lerning to deploy django projects, thanks for any helping.

2017-12-01 Thread Gerardo Palazuelos Guerrero
Personally, I haven´t done it. Most of tutorials are deploying into VPS, but technical, it should work locally: https://simpleisbetterthancomplex.com/tutorial/2016/10/14/how-to-deploy-to-digital-ocean.html http://django-best-practices.readthedocs.io/en/latest/deployment/ https://developer.mozilla.

Re: İ want to setup a server at home for testing and lerning to deploy django projects, thanks for any helping.

2017-12-01 Thread Ali İNCE
Thanks but i am getting trouble server settings in nginx gunicorn or apache is there any tuts or sources. Thanks in advance. Android için Outlook uygulamasını edinin From: django-users@googlegroups.com on behalf of Vijay Khemlani Sent: F

Re: Require an inventory model tutorial in Django

2017-12-01 Thread carlos
Hi, if you have the db, try this for auto-generate complete models. https://docs.djangoproject.com/en/1.11/howto/legacy-databases/#auto-generate-the-models cheers On Fri, Dec 1, 2017 at 7:33 AM, Jason wrote: > A good first step would be going through the django tutorial at > https://docs.django

Re: How do I customize registration form HTML?

2017-12-01 Thread yingi keme
Hey, i made a mistake in the previous reply. Its widget and not widgets. The correct code is: Intead of rendering it with the as_p. You can render them individually. ie {{form.name}} {{form.username}} In the forms.py, in each of the fields, add widget attributes. def MyForm(forms.ModelForm):

Re: How do I customize registration form HTML?

2017-12-01 Thread yingi keme
Yingi Kem > On 1 Dec 2017, at 3:25 PM, yingi keme wrote: > > Intead of rendering it with the as_p. You can render them individually. > ie > > {{form.name}} > {{form.username}} > > In the forms.py, in each of the fields, add widget attributes. > > def MyForm(forms.ModelForm): > name = f

Re: How do I customize registration form HTML?

2017-12-01 Thread yingi keme
Intead of rendering it with the as_p. You can render them individually. ie {{form.name}} {{form.username}} In the forms.py, in each of the fields, add widget attributes. def MyForm(forms.ModelForm): name = forms.CharField(label='name', widgets=forms.TextInput(attrs={'placeholder':'Name

Getting channels 2 to work

2017-12-01 Thread John Wayne
Hi everyone, I am stuck getting the new channels 2 to a working state. I installed django==2.0rc1, and channels==2.0.x, daphne==2.0.x, asgiref==2.0.x from the git repo channels is enabled inside the settings.py. I also created the asgi.py file in the direcotry of the wsgi.py file acording to t

Re: Require an inventory model tutorial in Django

2017-12-01 Thread Jason
A good first step would be going through the django tutorial at https://docs.djangoproject.com/en/1.11/intro/tutorial01/ Also, Victor Frietas has written an excellent starter series for complete beginners to Django at https://simpleisbetterthancomplex.com/series/beginners-guide/1.11/ The struct

Re: How do I customize registration form HTML?

2017-12-01 Thread Luiz Guilherme Schiefler de Arruda
Hello, I don't know if this tutorial will help you. It helped me a lot. https://simpleisbetterthancomplex.com/series/2017/09/25/a-complete-beginners-guide-to-django-part-4.html#sign-up It is a very good serie teaching how to build a board. Em quinta-feira, 30 de novembro de 2017 22:50:35 UTC-2,

Re: İ want to setup a server at home for testing and lerning to deploy django projects, thanks for any helping.

2017-12-01 Thread Vijay Khemlani
For a typical setup, a VM (using VirtualBox or similar) running the OS of your server should be enough to test On Fri, Dec 1, 2017 at 2:39 AM, Ali İNCE wrote: > İ want to setup a server at home for testing and lerning to deploy django > projects, can anyone help me , advice and share sources th

ldap server authentication

2017-12-01 Thread pacopyc pacopyc
Hi, I am a beginner django programmer. I would like to authenticate users of my web application to an ldap server (which has about 1000 users defined). Not all users of the ldap server must be able to access the web application (only 50 ldap users must have access to the web application). Firs

İ want to setup a server at home for testing and lerning to deploy django projects, thanks for any helping.

2017-12-01 Thread Ali İNCE
İ want to setup a server at home for testing and lerning to deploy django projects, can anyone help me , advice and share sources thanks for all. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

authentication by ldap server

2017-12-01 Thread pacopyc pacopyc
Hi, I am a beginner django programmer. I would like to authenticate users of my web application to an ldap server (which has about 1000 users defined). Not all users of the ldap server must be able to access the web application (only 50 ldap users must have access to the web application).

Require an inventory model tutorial in Django

2017-12-01 Thread Heenashree Khandelwal
Hi, I am new to Django. I want to create an inventory model (or capacity management model ). I have environments. These environments have servers (with different flavors, like CPU, RAM etc). On the basis of the user requirements, (where user inputs cpu, ram, cpu model etc), we calculate and gi

Re: Send email - user data for complete registration

2017-12-01 Thread Richard Maceček
Hello, thank you for your opinion, you are right, we really did not think about it. Some of the services used to send an email send a password, so it was inspirational, but it's bad. For users, I will send a confirmation email with a user name and thank notes. Thanks Mike Morris and Jason !