Re: import my data and generating models.py

2020-06-18 Thread Mohsen Pahlevanzadeh
On Friday, June 19, 2020 at 10:36:11 AM UTC+4:30, Mohsen Pahlevanzadeh wrote: > > Hello, > > I have two sql files : 1.creating tables 2.INSERT data > > Now I want to import to my database and generating my models.py according > to my sql files. > > Is it possible? > > > if true, please guide me

./manage makemigrations and ./manage migrate don't work

2020-06-18 Thread Mohsen Pahlevanzadeh
I run : ./manage makemigrations and ./manage migrate with the following output: """ (django_sql) mohsen@debian:~/Documents/django_sql/django_sql$ ./manage.py makemigrations Migrations for 'sql': sql/migrations/0

Please help me out!

2020-06-18 Thread meera gangani
Hello , I want to implement a Notification module in my Project could you please help me out! Thank you -Meera Gangani -- 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, s

Re: import my data and generating models.py

2020-06-18 Thread RANGA BHARATH JINKA
Hi, Try this. https://simpleisbetterthancomplex.com/packages/2016/08/11/django-import-export.html https://docs.djangoproject.com/en/3.0/howto/initial-data/ https://django-import-export.readthedocs.io/en/latest/getting_started.html On Fri, Jun 19, 2020 at 11:37 AM Mohsen Pahlevanzadeh < m.pahlev

import my data and generating models.py

2020-06-18 Thread Mohsen Pahlevanzadeh
Hello, I have two sql files : 1.creating tables 2.INSERT data Now I want to import to my database and generating my models.py according to my sql files. Is it possible? if true, please guide me. -- You received this message because you are subscribed to the Google Groups "Django users" gro

Re: Regarding Django models.

2020-06-18 Thread MANISH YADAV
But if I use SQL Alchemy, can I use django admin panel. Because need 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

Re: python manage.py runserver error

2020-06-18 Thread Utsab Bashyal
enter inside your project directory using command cd project_name in termina and run manage.py runserver On Fri, Jun 19, 2020 at 6:52 AM Thomas Furtado wrote: > Hii, thanks for answering but it didn't work > Now it showed: no module named 'django.contrib.statics' > > Em qui, 18 de jun de 2020

Re: python manage.py runserver error

2020-06-18 Thread Thomas Furtado
Hii, thanks for answering but it didn't work Now it showed: no module named 'django.contrib.statics' Em qui, 18 de jun de 2020 22:03, chaitanya orakala escreveu: > Hi Thomas, > Please run the following commands to solve this problem, before running > the server. > > python manage.py makemigratio

Re: python manage.py runserver error

2020-06-18 Thread chaitanya orakala
Hi Thomas, Please run the following commands to solve this problem, before running the server. python manage.py makemigrations python manage.py migrate and then command python manage.py runserver Hope this helps. Let me know if you have any questions On Thu, Jun 18, 2020 at 6:15 PM Thomas Furta

Re: python manage.py runserver error

2020-06-18 Thread Thomas Furtado
Hi, I've seen you sent this last year and I'm having the same error message at my pycharm... Did you solve this?? could you help me with this please?? Em sábado, 13 de julho de 2019 08:35:31 UTC-3, Jack Bergemann escreveu: > > (venv) C:\Users\Chas\rp-portfolio\personal_portfolio>python manage.py

Shouldn't there be a library already for how to render your JS Frontend code into HTML and then insert your Django templates with jinja2 very easily?

2020-06-18 Thread Andrew
Hi all! I'm no frontend person, but I do help triage issues in djangorestframework-simplejwt. It's probably one of the most used authentication library for DRF users and most of all frontend framework devs of Django (i.e. React, Angular, Vue). I've been getting lots of comments about issue #1

The syntax of the file name, directory name or volume label is incorrect: ''

2020-06-18 Thread Thomas Furtado
Microsoft Windows [versão 10.0.18362.900] (c) 2019 Microsoft Corporation. Todos os direitos reservados. (venv) C:\Users\User\PycharmProjects\curso-udemy-master>python manage.py runserver Watching for file changes with StatReloader Exception in thread django-main-thread: Traceback (most recent cal

Re: Regarding Django models.

2020-06-18 Thread DOT. py
Use SQL Alchemy ORM , Django ORM has foreign key policy , if u can solve it using that it's on u .. On Fri, Jun 19, 2020, 01:23 MANISH YADAV wrote: > hello community members, > I am a student and interested in Django. can you please help me. > I am designing a project in Django. For that, I have

Migration problems when using intermediate (through) table on many-to-many relationship

2020-06-18 Thread 'Rodrigo Estevão' via Django users
I've been facing a migration problem when using a *through* table on many-to-many relationship. When I create the migration using modles configured as follow ... # src/apps/core/valuation/models.py from django.utils import timezone from django.db import models from django.utils.translation impo

Regarding Django models.

2020-06-18 Thread MANISH YADAV
hello community members, I am a student and interested in Django. can you please help me. I am designing a project in Django. For that, I have my database schema which consists of the composite primary key and composite foreign key. But Django does not support any type of composite key. I have tr

Re: Training Resources for using JavaScript with Django

2020-06-18 Thread Julio Cojom
in your template, open a js block {% block javascript %}

not possible to delete if calling self.errors in a Form in InlineFormSet

2020-06-18 Thread Carles Pina i Estany
Hi, Yesterday and today I implemented something and I had a surprise. I'm explaining here with questions at the end but also in case that I might save some time to someone working with forms (if someone is going to try the same approach that I did and it doesn't work). What I want to do: the u

Re: Why Should I use DRF over Django

2020-06-18 Thread maninder singh Kumar
DRF causes serialization of data and converts it to JSON, making it an efficient way to communicate with your frontend. An API allows you to build a common core that can be used on multiple platforms like websites, mobile applications, plugins, and so on. You can build an API with pure Django too.

Re: Why Should I use DRF over Django

2020-06-18 Thread Andréas Kühne
Like Shishir says it's not using DRF instead of django, It's DRF on top of django. The main reason for using DRF instead of using django by itself is that you get an enormous consistency. Serialization is really simple, you get validation on all fields with valid JSON results. You get all of the s

Training Resources for using JavaScript with Django

2020-06-18 Thread meva...@gmail.com
Hello Community Members, Can you please point me towards resources for using Javascript /Jquery /AJAX with Django, Want to create single page application which can send /receive data without reloading to different pages and to be able to show progress of an ongoing operation through percentage

Re: Why Should I use DRF over Django

2020-06-18 Thread Shishir Jha
Its not that use drf "over" django. Its like you use drf "with" django. Whenever you want to create rest api, django rest framework is the library created to do that more usually. Django on the other end is a framework to create web application. There is never the case when you are using drf and no

After converting Static to Django form the Menus, not working on mobile device mode

2020-06-18 Thread Hadisur Rahman
The site is perfectly working on itself by default but when I convert it in Django format the only menus. not working when I browse the site in mobile device mode. here is the pic when it is in default mode [image: Screenshot-33.png] After converting in Django format the above pic right side l

Menu does not work when i try to browse the site in mobile device mode after covert the site from STATIC TO Django format.

2020-06-18 Thread Hadisur Rahman
Here is the full project Github link ( https://github.com/hudacse6/Tourist_Site) All of the tasks work well but only the menu means when I try to browse the site the manus does not show. [image: Screenshot-33.png] [image: Screenshot-34.png] The menu,s are shown perfectly when I code of tha

Why Should I use DRF over Django

2020-06-18 Thread Rajprabhu Arulnathan
Apart from Rest API & serializer why I should use DRF over Django Because We could write what we want in Django & I want to know the advantage of using DRF over Django -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this gr

Re: Employee leave module in django?

2020-06-18 Thread Puneet Makhija
ok Meera So whats the problem Just create it If you have any query just ask To me On Thu, Jun 18, 2020, 4:54 PM meera gangani wrote: > Hello , > > I want to implement an employee leave module in django?? > "Am New" in django > Please help me? > > Thanks in advance > -Meera Gangani > > -- > You r

Employee leave module in django?

2020-06-18 Thread meera gangani
Hello , I want to implement an employee leave module in django?? "Am New" in django Please help me? Thanks in advance -Meera Gangani -- 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

Re: someone to help in this please

2020-06-18 Thread Peter Kirieny
thanks again Richard, this helped a lot On Wed, 17 Jun 2020 at 16:07, Richard Balwane wrote: > -> Do a .whl installation - In the environment! > Download "GDAL-3.0.4-cp37-cp37m-win_amd64.whl", if using Python 3.7 on > Windows 64-bit > Say... > Command(env activated, path to the file): > python

Re: FileNotFoundError at /urlpath, after hosting Django project to Heroku

2020-06-18 Thread Kasper Laudrup
Hej Lejaha On 18/06/2020 11.42, lejaha...@gmail.com wrote: Created a an application that generates pdf-files from latex templates saved on the project, using the subprocess('pdflatex nameofTemplate' ) method. The application works fine, locally. But does not work on the server and returns "[Er

FileNotFoundError at /urlpath, after hosting Django project to Heroku

2020-06-18 Thread lejaha...@gmail.com
Created a an application that generates pdf-files from latex templates saved on the project, using the subprocess('pdflatex nameofTemplate' ) method. The application works fine, locally. But does not work on the server and returns "[Errno 2] No such file or directory: 'pdflatex mytexfile.tex':

RE: why in views we use def(functions) and model we use class, why not we use def(fuction) in models and class in views

2020-06-18 Thread Vishesh Mangla
If your wish whatever you want to use, all you have to use is the “request” variable that Django gives you. Btw see “generic views”.  Sent from Mail for Windows 10 From: yashwanth balanaguSent: 18 June 2020 12:23To: Django usersSubject: why in views we use def(functions) and model we use class, why