Re: Building a framework

2018-12-29 Thread Jani Tiainen
Hi. Unfortunately your question is really too broad to answer but I'll give something to grasp on. It all depends on features you want to build, time it takes to build those features and time you do have available. You should split your planned tasks to about two week periods (longer periods are

Re: db_index=True not working, and indexes in class Meta yes

2018-12-29 Thread Jason
django automatically creates an index for foreign key columns, unless you specify db_index=False for that field. what I suspect is happening here, you're telling django that it should have two indices for that particular column covering identical areas of responsibility. -- You received this

django admin site change_related_template_url problem

2018-12-29 Thread Zhe Li
Hi, I am having issues with django installed on a server reversed proxied to the main website. Most of the sites work just fine except a very small detail in the admin site, change form page. Django is running on server A, served at / on port 12345. Server B which is the main web server and ha

STATIC FILES not working for admin site, projects and apps on DJANGO

2018-12-29 Thread abel otugeme
I really need help i have combed through stackover flow and this group but the solutions provided don't work for me. i use a 32bit windows 7 OS and the latest version of django -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe fr

template location for django-registration framework

2018-12-29 Thread Yuval Bachrach
I have installed "django-registration:" and now follow " https://django-registration.readthedocs.io/en/3.0/quickstart.html"; I have set URLs as explained (see below) but failed to tell django where to find the templates. What do I need to do to have django find the templates? More details: htt

Re: template location for django-registration framework

2018-12-29 Thread Zhe Li
Have you searched the internet before posting? https://stackoverflow.com/questions/6127264/troubleshooting-templatedoesnotexist-at-accounts-login-django-auth-setup You can either create your own pages or copy the whole templates under the django admin site -- site-packages/django/contrib/admin/

Re: STATIC FILES not working for admin site, projects and apps on DJANGO

2018-12-29 Thread Kasper Laudrup
Hi Abel, On 29/12/2018 08.07, abel otugeme wrote: I really need help i have combed through stackover flow and this group but the solutions provided don't work for me.  i use a 32bit windows 7 OS and the latest version of django It would probably be easier for someone to help you if you trie

inserting data in django using forms

2018-12-29 Thread Saeed Pooladzadeh
Hello, For inserting and editing data in a database should we use Django forms? thanks Saeed -- 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+unsu

Re: inserting data in django using forms

2018-12-29 Thread Gear Crew
if you use class based view you can use Detailview, CreateView, DeleteView , UpdateView and call CRUD Django and I think is so easy from using Function based view On Saturday, 29 December 2018 23:26:36 UTC+2, Saeed Pooladzadeh wrote: > > Hello, > > For inserting and editing data in a database s

Itterate with Include Tag

2018-12-29 Thread Shazia Nusrat
Hi Guys, I have a form created from foreignkey model. I have used "include" with jinja for displaying my fields. But I don't know how to iterate through and include tag. % Below is the code and I would appreciate if someone can help me to iterate through following template code. {% for field in f

Re: inserting data in django using forms

2018-12-29 Thread Mamadou Harouna Diallo
Its ORM object must make a CRUD( creat, insert, read, delete) in a database. You can use forms or not in the back but its ORM mutable data. Sorry my english is bea 😂😂😂 Le sam. 29 déc. 2018 à 21:27, Saeed Pooladzadeh a écrit : > Hello, > > For inserting and editing data in a database should we u

500 Internal Server Error!! - Issue in wsgi in django application migrating from python2.7 to python3.6

2018-12-29 Thread Sindhujit Ganguly
I am getting 500 Internal Server Error when I migrated my django app from python2.7 to python3.6. I have created a new virtualenv, and created all the apps individually. The virtualenv is defined in uwsgi.ini file home = /home/netadc/.venvs1/netadc I have installed all the packages using pip3

Re: STATIC FILES not working for admin site, projects and apps on DJANGO

2018-12-29 Thread abel otugeme
This is how a site looks when i open it up in my browser No CSS! i have done the necessary settings for Django to find the static files On Sat, Dec 29, 2018 at 5:14 PM Kasper Laudrup wrote: > Hi Abel, > > On 29/12/2018 08.07, abel otugeme wrote: > > I really need help i have combed through s

Re: inserting data in django using forms

2018-12-29 Thread Saeed Pooladzadeh
Can you please give me an example? On Sat, Dec 29, 2018, 4:53 PM Gear Crew if you use class based view you can use Detailview, CreateView, DeleteView > , UpdateView > and call CRUD Django and I think is so easy from using Function based view > > On Saturday, 29 December 2018 23:26:36 UTC+2, Saeed

Re: Building a framework

2018-12-29 Thread Muhammad Zuhair Askari
The very serious and important point this is which needs to be focused. Thanks alot Jani Tiainen :), I will try... On Saturday, December 29, 2018 at 4:23:19 PM UTC+5, Jani Tiainen wrote: > > Hi. > > Unfortunately your question is really too broad to answer but I'll give > something to

how to insert or rewrite a text box value in a database

2018-12-29 Thread Saeed Pooladzadeh
Hi .In this tutorial, there is a complete example of CRUD using function base and class base https://rayed.com/posts/2018/05/django-crud-create-retrieve-update-delete/ but my question is if we want to insert a textbox value to the database what we should do. thanks, -- You received this me

Re: db_index=True not working, and indexes in class Meta yes

2018-12-29 Thread Gonzalo Amadio
Yes, exactly. Django doc tells they do the same. And they do, but if you do not specify db_index=False in field, both indexes are created. Here is exaplanation : https://stackoverflow.com/questions/53966256/django-db-index-true-not-creating-index-but-class-meta-indexes-yes El domingo, 30 de di