django form validation error massage not showing. please help me out

2023-09-15 Thread Mohammad Shahidullah
models.py class Position(models.Model): title = models.CharField(max_length=50) def __str__(self): return self.title class Department(models.Model): title = models.CharField(max_length=50) def __str__(self): return self.title class Employee(models.Model): fu

Re: Problems in Django login authentication

2023-07-29 Thread Mohammad Ehsan Ansari
First extend abstract user model or abstract base user model in your user model and after that define auth.model in settings.py hope its workSent from my iPhoneOn 30-Jul-2023, at 10:45 AM, Abdulrahman Abbas wrote:Can you login with superuser?On Sun, Jul 30, 2023, 02:32 Mh Limon

Re: can someone help me why my static files is not being rendered?

2023-06-17 Thread Mohammad Sadegh
> Yes send message to my account -- 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. To view this discussion on the web vi

Re: Django microservice authentication problem.

2023-02-02 Thread Mohammad Anarul
Thanks, guys The Django user group is very helpful. On Sun, Jan 29, 2023 at 12:54 PM Lauro Cesar de Oliveira (olarva) < ola...@gmail.com> wrote: > Hello there. > > First thing: show us the error. > > Getting status code 400? > > Probably a wrong setting of one of those (or maybe all): > > ALLOWED

Django microservice authentication problem.

2023-01-27 Thread Mohammad Anarul
How to communicate and authenticate with multiple Django servers. Is it possible? If possible you can help me, I am trying more than 15 days in this section but not getting any solution. Please share with me any requirements like books, videos, blogs, or code examples. -- You received this mess

Re: Django call_command from Admin

2022-10-21 Thread Mohammad Ehsan Ansari
Please refer the signal concept in django you will get how to implement it On Thu, 20 Oct, 2022, 9:36 pm Aziz Mek, wrote: > Hi All, > > I was wondering if you have come across the following: > > I have a field in the model that's empty, when the user fills it up and > clicks Save, it > should t

Re: Not avle to login with google in my website

2022-09-25 Thread Mohammad Ehsan Ansari
Add into allowed origin On Fri, 23 Sep, 2022, 7:20 pm Rajesh Kumar, wrote: > Hi All, > I have integrated the social_django package for social logins like google > and Fb ...etc. > But It's working in localhost fine but after deployed in AWS ec2 with > docker It's not working > Authorization Erro

Re: How do django Field type hints work?

2022-09-23 Thread Mohammad Anarul
You can following the article https://www.geeksforgeeks.org/decimalfield-django-models/amp/ On Sat, Sep 24, 2022, 5:09 AM Justin Black wrote: > Hello there, > > If I have a model: > > class Money(models.Model): > price = models.DecimalField() > > m = Money(...) > pycharm knows that m.price

Re: DRF and React - request.user is "Anonymous user"

2022-09-19 Thread Mohammad Ehsan Ansari
yes you need On Tue, 20 Sept 2022 at 09:49, Jackson Patrick wrote: > Do i need to pass token in headers? > > On Tue, 20 Sep, 2022, 9:44 am Mohammad Ehsan Ansari, > wrote: > >> make sure you have listed auth as jwt and added permission class for >> authentication &g

Re: DRF and React - request.user is "Anonymous user"

2022-09-19 Thread Mohammad Ehsan Ansari
make sure you have listed auth as jwt and added permission class for authentication On Monday, 12 September 2022 at 09:52:22 UTC+5:30 jacks...@gmail.com wrote: > I have used simple JWT for authentication and i have successfully logged > in and am getting tokens also. But when i do a request.us

Re: session id attribute error

2022-09-19 Thread Mohammad Ehsan Ansari
Hi SessionStore is a model class? if yes you can use pk instant of id On Monday, 19 September 2022 at 22:48:02 UTC+5:30 aashishk...@gmail.com wrote: > Do this > > request.session.get(‘id’) > > On Mon, 19 Sep 2022 at 1:30 PM, shiva singh wrote: > >> hello everyone please help me how can solve

Re: help on how to deploy django app on railway "

2022-09-15 Thread Mohammad Anarul
You can follow the github repo https://github.com/mohammadanarul/railway-action.git On Fri, Sep 16, 2022, 2:32 AM ola neat wrote: > hallo guys, > so i'm having issue deploying my django on railway but once the deployment > is complete the app crash with this err > > > raise ImproperlyConfigured(

Re: SMTP Authentification error

2022-05-01 Thread Mohammad Anarul
EMAIL_HOST = smtp.gmail.com EMAIL_HOST_USER = your-email EMAIL_HOST_PASSWORD = your-email-password EMAIL_PORT = 587 EMAIL_USE_TLS = True EMAIL_BACKEND = django.core.mail.backends.smtp.EmailBackend DEFAULT_FROM_EMAIL = your-email On Mon, May 2, 2022 at 10:33 AM 'Delvin Alexander' via Django users <

Re: help

2021-10-26 Thread Mohammad Naebi
> > > Hi > Enter the virtual environment first > Write the following command in your terminal or shell > pip freeze All the modules you have installed will be shown to you along with the version. -- You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: Python Developer

2021-07-12 Thread Mohammad Rahimi
Hello nagaraju!! Thanks for your great Gmail! I saw your resume, but I didn't understand that well... So, I have to study more to figure out it! However, very very very thanks for your help! Mohammad from Iran On Mon, Jul 12, 2021, 19:53 RaviKiran Kk wrote: > We are looking fo

Re: hello dear sir i have one dout

2021-04-28 Thread Mohammad Anarul
kindly inbox me. https://www.facebook.com/mohammadanarul24/ On Wed, Apr 28, 2021 at 7:33 PM TOURIST PALACE wrote: > i have one dout how use slug per post i didnot understood > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscri

Re: Assistance for deploying django app to heroku

2021-04-23 Thread Mohammad Anarul
kindly shere your code On Fri, Apr 23, 2021 at 5:56 PM ejike@gmail.com wrote: > Good day All, > > I am trying to deploy my django app to heroku but i keep getting this > error in the screenshot attached. > > Please can anyone assist in me in finding a solution to this and where the > iss

Re: NameError at /account/signup/

2021-03-13 Thread Mohammad Anarul
You did not import the signup form. So showing errors On Sat, Mar 13, 2021 at 5:48 AM Eduardo Agreda López < eduardoagred...@gmail.com> wrote: > Do you have create the SingUpForm. If you use Django auth model, can you > create the forms.py file and import this path: > > from django.contrib.auth.

Re: A very easy problem that I couldn't figure it out! PLEASE HELP^^

2021-03-05 Thread Mohammad Anarul
[image: Screenshot_7.png] On Fri, Mar 5, 2021 at 9:36 PM Kasper Laudrup wrote: > If you want someone to help you, please do take the time to write a > proper question. > > Just posting an error message and screaming for help will most likely > not get you a lot of help. > > Learning how to commu

Re: 'MySQLdb.constants.FIELD_TYPE' has no attribute 'JSON'

2021-02-17 Thread Mohammad Anarul
You can run it pip install mysqlclient==2.0.1 On Wed, Feb 17, 2021 at 8:53 PM Brijesh Soni wrote: > Hello All, > > > I have Install the Python 3.6 32Bit with My SQL 32bit and Install the > mysqlclient==1.3.11 > > but when I am starting the Django with the > > runserver command, I am getting be

Re: cinema booking

2020-10-08 Thread Mohammad Ahshan Danish
you need to have available seat in database On Thu, Oct 8, 2020 at 6:29 PM feysel abdu wrote: > I Was building a cinema booking app and I am using Django , I want to > know available seats and booked seats > > -- > You received this message because you are subscribed to the Google Groups > "Dja

Re: Password see

2020-10-08 Thread Mohammad Ahshan Danish
you can create new superuser. I think there is way to reset superuer password. you can't retrieve old passwords. it gets stored in using Hash algo and not possible to decode. On Thu, Oct 8, 2020 at 5:11 PM kkwaq...@gmail.com wrote: > *How to se password admin *, > *Django in store password en

Re: JavaScript

2020-10-02 Thread Mohammad Ahshan Danish
Okay, Use Text Change event and display error accordingly. Text Change event. On Fri, Oct 2, 2020 at 9:02 PM Eugene TUYIZERE wrote: > Dear All, > > I did form validation where I can not save empty value. And When I try a > message displays under the text field. What I want is, in case I type at

Re: Django Due control in Django

2020-10-01 Thread Mohammad Ahshan Danish
Easy, while creating user make staff=false. Second user will go using the admin panel and can update isStaff= True. now the first user would be able to access the django app. On Thu, Oct 1, 2020 at 8:46 PM Eugene TUYIZERE wrote: > Dear all, > > I want to make an application that requires 2 per

Re: I am stuck at "Installing Django on PythonAnywhere" can anyone help me ?

2020-09-21 Thread Mohammad Ahshan Danish
😂😂 On Mon, Sep 21, 2020 at 7:04 PM Shahprogrammer wrote: > That's not the problem with installation of Django it's with your urls > > On Monday, 21 September, 2020 at 6:49:56 pm UTC+5:30 kashubh...@gmail.com > wrote: > >> [image: Screenshot (418).png] >> > -- > You received this message because

Re: Calculated feild in models

2020-09-19 Thread Mohammad Ahshan Danish
Create a model and add functions if you want to go more deep use Model-manager. On Sun, Sep 20, 2020 at 12:27 AM coolguy wrote: > Create a function at class level like this.. > > *class xxx(models.Model):* > quantity = models.FloatField() > unit_price = models.FloatField() > >

django.db.models.signals

2020-09-19 Thread Mohammad hassan Tahery
It would be cool to have pre_update and post_update in set of built-in signals. -- 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...@goog

Re: Change Date Formate

2020-09-15 Thread Mohammad Ahshan Danish
{{you_date_field|date:'Y-m-d'}} On Tue, Sep 15, 2020 at 3:52 PM kkwaq...@gmail.com wrote: > How to change date format in django (mmdd to ddmm) > > [image: p.jpg] > [image: p1.jpg] > how to change like this dd/mm/ > > -- > You received this message because you are subscribed to the G

Re: Installation errors

2020-09-12 Thread Mohammad Ahshan Danish
*trying using virtual env* *>pipenv install* *>pipenv shell* *>pipenv install django* On Sat, Sep 12, 2020 at 8:07 PM Odeyale Kehinde wrote: > I want to install Django on my system but getting these errors. > > C:\Users\odeya>pip install Django==3.1.1 > Collecting Django==3.1.1 > Downloading >

Re: I am getting an error message about a non-nullable field in existing rows, even though I dropped all rows via the admin interface

2020-09-12 Thread Mohammad Ahshan Danish
yes it works after deletion because old records get deleted. but better approach is to do changes in migration.py files On Sat, Sep 12, 2020 at 8:14 PM Mislav Jurić wrote: > Hey Danish, > > I was able to resolve the error by deleting the *db.sqlite3* file from my > project root directory and al

Re: I am getting an error message about a non-nullable field in existing rows, even though I dropped all rows via the admin interface

2020-09-12 Thread Mohammad Ahshan Danish
you need to give default value in email. seems few records are already exist. else delete sqllite file and try again. On Sat, Sep 12, 2020 at 6:22 PM Mislav Jurić wrote: > Hey guys, > > I added an EmailField > to > some of my

Re:

2020-03-20 Thread Mohammad yunus
Thx On Tue, 24 Dec 2019, 6:50 pm V.K. Vanama, wrote: > The following steps are useful on Microsoft Windows Platform, I am using > Microsoft Windows 10 64-bit > > Step 1: Create a django project either through command line interface or > through any IDE such as JetBrains PyCharm, Atom, etc... > S

Re: How to migrate Django site from MySQL database to Postgres?

2019-11-23 Thread Mohammad yunus
Is this "migration" command will work for all type of databases or just only for sqllite3? On Sun, 24 Nov 2019, 9:12 am Ram, wrote: > Hi Carlos, > > If you get to see my email, could you review my plan and let me know > whether my plan works for migration. > > 1. I have setup new Ubuntu 18.04 se

Re: Django jobs available

2019-11-18 Thread Mohammad yunus
What if I am Freshers? On Mon, 18 Nov 2019, 1:25 pm Jani Tiainen, wrote: > > If you are an experienced software developer looking for new challenges - > this could be your opportunity! > > > > Keypro is internationally growing company specialized in network > information management systems and G

Re: Help with manage.py help

2019-11-02 Thread Mohammad yunus
If u type "python manage.py help" it will work..if u type only"manage.py hello" it will show error...I think it's version problem,,can u tell us what u want to do On Sun, 3 Nov 2019, 3:41 am Matías V, wrote: > I use python manage.py help and workt, but i dont understand why > > > l sábado, 2 d

[no subject]

2019-11-01 Thread Mohammad yunus
Can anyone tell me about how to set mysql database connection,and also tell me requirements for this steps,. Can someone tell me which database is good for Django framework .I know about default database sqlite (is it good for it) -- You received this message because you are subscribed to the

Re: Server does not see any apps

2019-11-01 Thread Mohammad yunus
See ur settings.py file and see inside the installed_app['Meow'] On Fri, 1 Nov 2019, 5:19 pm Nijo Joseph, wrote: > What about the settings.py? i think u forgot to include Miaow in the i > INSTALLED_APPS = [ > 'Miaow', > ] > > On Tuesday, October 22, 2019 at 3:37:42 AM UTC+5:30, Кирилл Лаврентьев

[no subject]

2019-10-29 Thread Mohammad yunus
Can anyone tell me how to connect mysql database.. with step by step? -- 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.c

Re: django server not runing

2019-10-17 Thread Mohammad yunus
Seperate your URL file with "," or remove "name" On Fri, 18 Oct 2019, 7:52 am wd, wrote: > The error is pretty clear ... > > [image: image.png] > > May be it should be path('', views.first_view, name='first_view') ? > > On Fri, Oct 18, 2019 at 4:41 AM Muhamed Bešić > wrote: > >> >> -- >> You re

Re: Keyring with Django

2019-10-15 Thread Mohammad yunus
What is this keyring? On Sat, 12 Oct 2019, 12:35 pm Tumbelo, wrote: > Hi, > > I need to store some third party server passwords in Django, in views.py > to be more specific. Those are used for Paramiko SFTP (machine-to-machine > communication) and it's not possible to use keys instead of passwor

Re: page redirecting only home page

2019-10-12 Thread Mohammad yunus
In URL('empty') Convert it into URL(r^'$',your view) On Sat, 12 Oct 2019, 8:06 pm lemme smash, wrote: > why you have type="button" on anchor?) > > On Saturday, October 12, 2019 at 7:07:48 AM UTC+3, narendra thapa wrote: >> >> i have two template load_page.html and ask_questions.html while i am >

Re: FK forms in a Single CreateView

2019-10-10 Thread Mohammad yunus
What is mean FK Shaziya On Thu, 10 Oct 2019, 9:19 pm Shazia Nusrat, wrote: > Hi I have a situation to manage multiple models with FK for a single > CreateView. > > Can someone give me a solution for the below. > > class Client(models.Model): > name = models.CharField(max_length=100) >

Django "GET / HTTP/1.1" 200 16348" Error

2019-09-12 Thread mohammad reyajuddin
After executing runserver command in django terminal , below msg is displayed and No chnages in webpages after coding. Please suggest. Django version 2.1.5, using settings 'myutility.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with CTRL-BREAK. [12/Sep/2019 22

Re: Regarding to getting error registration page

2019-08-24 Thread mohammad mehrani
hello can u get github link project and i star and fork for u On Tue, Aug 20, 2019 at 11:56 PM RONAK JAIN wrote: > Hello Django Users > > > I am trying to redirect my registration page but, I am getting *please > check my attached screenshot* and please let me know where I am doing > wrong... >

Re: form.is_valid() is always return false please help

2019-08-24 Thread mohammad mehrani
awesome!!! and i like it On Fri, Aug 23, 2019 at 12:27 AM Shubham Chauhan < shubham.chauhan...@gmail.com> wrote: > form.is_valid() is always return false please help > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from th

Re: how to secure api?

2019-08-24 Thread Mohammad Kokhaee
r of your site > > On Sat, 24 Aug 2019, 09:52 Mohammad Kokhaee wrote: > >> hi guys >> >> >> ??is that secure the signup user api have no permission and have >> no authenticate >> >> >> (allow any ) >> >> >> -- >> You

how to secure api?

2019-08-24 Thread Mohammad Kokhaee
hi guys ??is that secure the signup user api have no permission and have no authenticate (allow any ) -- 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 djan

Re: JWT Token

2019-08-21 Thread Mohammad Kokhaee
n the previous email and you should get the response with > profile details. > > On Thu, Aug 22, 2019 at 5:13 AM Mohammad Kokhaee > wrote: > >> Thanks for your explanation >> After the user send the token to server >> What Should I do with the token to access t

Re: JWT Token

2019-08-21 Thread Mohammad Kokhaee
127.0.0.1:8000/api/token/ username=mohammad password=123 > > You can use cURL, or HTTPie or Python's requests module to test this.. > Heck you can go full commando on this, by building an Angular front.. > > The response will be of form: > &g

JWT Token

2019-08-21 Thread Mohammad Kokhaee
Hello guys I've created token by JWT and My questions 1-how to access to user information by token ? 2-Is that the Right way and is that secure? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

restfamework

2019-08-19 Thread Mohammad Kokhaee
.Hello guys .I want to create alot users with some informations like phone number and etc with api Restframework and I dont know how to do that -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop recei

New leaener.

2019-07-02 Thread ABU SADAT MOHAMMAD SAYEM
Hi, I have recently started python & somewhat completed the basics. Now want to learn 'django'. Please advise where to begin & focus? -- 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

Strongly Want to Eat Django

2019-06-16 Thread Mohammad Etemaddar
https://metemaddar.ir/?p=24 -- 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+un

Re: Confused with deleted migrations

2019-06-16 Thread Mohammad Etemaddar
+4:30, Mohammad Etemaddar wrote: > > 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

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

Re: models

2019-05-08 Thread Mohammad Etemaddar
The one who should have foreign key is is filter, box and barel to shelf. Then you can access them from shelf: Shelf0.boxs Shelf0.barels And shelf0.filters Note that you can set the relation_name in foreign key so that you can use the related name instead of filters, boxs and barels On Wed, 8 May

Re: Why my email goes to spam?

2019-04-19 Thread Mohammad Etemaddar
را به عنوان آدرس خود به حساب کاربری خود متصل کرده. برای تایید درستی این موضوع، به لینک زیر بروید: https://myaa.ir/accounts/confirm-email/MjA:1hH2KA:c6USpdrEt0pkN5SofEBrsav6gqk/ سپاس از طرف Myaa.ir! myaa.ir On Thursday, April 18, 2019 at 2:14:30 PM UTC+4:30, Kasper Laudrup wrote:

Why my email goes to spam?

2019-04-18 Thread Mohammad Etemaddar
Hello. I'm working on a bussiness website. I send invitation and also confirm emails by django-allauth. Invitation and allauth emails go to spam box. I don't know what is the problem? How can I prevent emails going to spam? -- You received this message because you are subscribed to the Google Gr

Re: Using forms to handle request.GET data?

2019-04-03 Thread Mohammad Etemaddar
Set default value: year = forms.ChoiceField(required=False, choices=[(j, j) for j in range(2018, 2021)], default=2019) You do not need clean_year any more I think. On Wednesday, April 3, 2019 at 1:42:50 AM UTC+4:30, Carsten Fuchs wrote: > Dear Django group, > > I would like to show users a form

RE: Login by phone number best practice

2019-04-03 Thread Mohammad Etemaddar
Thank you. But django-phone-login seems a bit complex. It uses rest framework. I don't know why. -- 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+un

I need help on adding a search button to an input field

2019-04-03 Thread Mohammad Etemaddar
You can use FieldWithButtons in form helper's layout: https://django-crispy-forms.readthedocs.io/en/d-0/layouts.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

Login by phone number best practice

2019-04-03 Thread Mohammad Etemaddar
I want users to login by phone number (without registration). But we need username field for authentication. This is just for make easy for users that don't know about using email. And also make it easier to login for them. But I need also username and email for other users for future. I need you

Re: Django 2.7.1 - "TemplateDoesNotExist at /munichlivingapp/seekers/ "

2019-03-30 Thread Mohammad Etemaddar
Dear Kabiba, It would be good to post your code (specially the part that renders the template). I think you're addressing the template by 'seeker_list.html'. You need to specify the mother directory 'munichi...app/seeker_list.html'. or put seeker_list.html right inside the templates directory. On

Re: Crispy: Helper Layout has no effect on form.

2019-03-26 Thread Mohammad Etemaddar
Found the answer. I used crispy like this: {{ form|crispy }} *But We should use like this to get form helper effect:* {% crispy form %} On Wednesday, March 20, 2019 at 7:02:31 PM UTC+3:30, Mohammad Etemaddar wrote: > Here is my model form which is rendered by crispy. > When I chan

Re: is_valid() method and cleaned_data attribute

2019-03-22 Thread Mohammad Etemaddar
Every field in Form has validators which check the value against their conditions. as Django Doc sais : The primary task of a Form object is

Re: 404 error when posting a multipart/form-data form

2019-03-22 Thread Mohammad Etemaddar
I'm not sure about this, but I think maybe it would be about your Django bug. Have you updated your Django? On Friday, March 22, 2019 at 7:37:14 PM UTC+4:30, Manlio Perillo wrote: > > On Friday, March 22, 2019 at 3:23:32 PM UTC+1, Manlio Perillo wrote: >> >> On Friday, March 22, 2019 at 1:28:55 P

Re: 404 error while loading uploaded image when debug is False

2019-03-21 Thread Mohammad Etemaddar
In production , we serve static files (like images) stright from httpd like apache, and we do not call django to serve them. But in testing while run django test server, we use static paths in urls.py to serve them, Maybe you have added mediaurls to your urlpatterns in urls.py conditionally (when

Re: log out a user when user closes tab or browser

2019-03-21 Thread Mohammad Etemaddar
I have a suggest for you. Its non standard. First create a javascript infinite loop to make a get call every 1 minute. Also make session expiration time at 2 minutes. So if tabs closed the session will expire at 1 minute. On Thu, 21 Mar 2019 15:17 Christian Ledermann, < christian.lederm...@gmail.

Re: 404 error when posting a multipart/form-data form

2019-03-21 Thread Mohammad Etemaddar
Can you send your view here? On Thu, 21 Mar 2019 12:58 Manlio Perillo, wrote: > I have a Django application that works perfectly fine both on my PC and on > a hosting system with CloudLinux and Passenger. > However when I added a form with a file field, I started to get 404 errors > on POST. > >

Crispy: Helper Layout has no effect on form.

2019-03-20 Thread Mohammad Etemaddar
Here is my model form which is rendered by crispy. When I change the layout, ordering, or adding elements, has no effect on rendered form. Do you see any problem in the code? Thank you class FactoryForm(forms.ModelForm): class Meta: model = Factory fields = ('name','field', 'description', 'man

Re: Passing values

2019-02-13 Thread Mohammad Etemaddar
Dear Ivan, If I get you right, You have a page with form, and you want to post it to another page. so, fill the "action" part of html form with the second page's url. Also the timezone.now is allways available in any python file you are working on it, and also request and request.user What do

update object without updating auto_now fields

2019-02-13 Thread Mohammad Etemaddar
I think about times that I need to edit user profiles without touching auto_now field. How can I do it? -- 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-u

Re: help for django interview task

2019-01-31 Thread Mohammad Shareef M
Refer this beginners document and try - https://tango-with-django.readthedocs.io/en/latest/ Thanks & Regards, Mahammad Shareef M +919741482617 +971581756035 On Thu, Jan 31, 2019 at 3:42 PM Tim Vogt (Tim Vogt) wrote: > draw out the program first and isolatie each problem you try to solve. >

Re: Django, mod_wsgi and apache2.4 = 403 forbidden

2019-01-29 Thread Mohammad Etemaddar
I have no experience in configure apache. But these two lines have conflict. DocumentRoot C:\Frontier_Website\FATWebsite\FrontierWebApp\zigview\templates\FrounterWeb and: WSGIScriptAlias / C:\Frontier_Website\FATWebsite\FrontierWebApp\FrounterWeb\wsgi.py Both of these lines tell apache

forms with get_or_create and inlineformset_factory

2019-01-26 Thread Mohammad Etemaddar
I think the answer is in your signal-connected function in your question query which you choosed all() questions. I did not understand the project, but you should choose questions in signal and not all questions I think. -- You received this message because you are subscribed to the Google Grou

Re: Access to the last object of model inside model itself

2019-01-26 Thread Mohammad Etemaddar
I commented out the default value and then ran the makemigrations again, and then uncommented again and worked. Of course by lambda. -- 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 i

Re: Access to the last object of model inside model itself

2019-01-26 Thread Mohammad Etemaddar
Im not agree. Managers are created for custom query. But here the query is last. I think I got the philosophy. The default value should not be a manager, because the database does not understand it. Maybe I am wrong! -- You received this message because you are subscribed to the Google Groups "

Access to the last object of model inside model itself

2019-01-25 Thread Mohammad Etemaddar
Hello I need the last object of model inside it. for example I have: class Field(models.Model): category = models.ForeignKey(Category, related_name='fields', on_delete= models.CASCADE, default = get_last_factory_field_category()) def get_last_factory_field_category(): return Field.objects.last().c

Best Learning Resources

2019-01-20 Thread Mohammad Etemaddar
I liked "django by example" -- 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. To post to this group, send email to djang

submit button redirecting to unknown url

2019-01-20 Thread Mohammad Etemaddar
Change action="." To action="" -- 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. To post to this group, send email to dj

Adding default rows to Django admin inlines

2019-01-19 Thread Mohammad Etemaddar
If I get you right you need to add m2m objects with a default value. In this situation, you can create an intermediate model to build m2m. For example: JobActionRel: job = fk action = fk-to-actions (default=Action.objects.get...) And use it as through model: https://docs.djangoproject.com/en/2.1/t

Re: How To Set Up Django with Postgres, Nginx, and Gunicorn on DIGITAL OCEAN

2019-01-16 Thread Mohammad Shareef M
thank you Thanks & Regards, Mahammad Shareef M +919741482617 +971581756035 On Wed, Jan 16, 2019 at 5:20 PM wrote: > this should help > > https://simpleisbetterthancomplex.com/tutorial/2016/10/14/how-to-deploy-to-digital-ocean.html > > On Wednesday, 16 January 2019 07:53:31 UTC, Shareef 617 w

solve problem to load template

2018-11-11 Thread Mohammad Shareef M
template = get_template('reports_base.html') {TemplateDoesNotExist}common_email_templates/partial_display_marketing_msg.html Pls help to solve this problem Thanks & Regards, Mahammad Shareef M +919741482617 +971501340618 +971581756035 -- You received this message because you are subscribed

Re: Help me to Generate CSV through Django View from database - and download the same

2018-10-16 Thread Mohammad Shareef M
Thanks lot Thanks & Regards, Mahammad Shareef M +919741482617 +971501340618 +971581756035 On Tue, Oct 16, 2018 at 2:57 PM mottaz hejaze wrote: > import csvfrom django.http import HttpResponse > def some_view(request): > # Create the HttpResponse object with the appropriate CSV header. >

Re: Create data from django models from .csv file using pandas library

2018-10-15 Thread Mohammad Aqib
by > Mailtrack > <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality6&;> > 10/15/18, > 5:03:59 PM > > On Mon, Oct 15, 2018 at 4:42 PM Mohammad Aqib > wrote: > >> I have multiple .csv files to create data from django

Create data from django models from .csv file using pandas library

2018-10-15 Thread Mohammad Aqib
I have multiple .csv files to create data from django models into a database using python pandas library. Can anyone suggest me how to do perform this task. import pandas as pd df = pd.read_csv(RESOURCE_ROOT + '/data_files/102018_core_business.csv') business_instance, created = Business.objects.

Re: How to migrate old database into new database using python script

2018-10-11 Thread Mohammad Aqib
o > be using postgres as well, I can help further. > > On Thu, Oct 11, 2018 at 5:03 AM Mohammad Shareef M > wrote: > >> Create new database and Restore the backup file >> >> Thanks & Regards, >> Mahammad Shareef M >> +919741482617 >> +9

Re: How to migrate old database into new database using python script

2018-10-11 Thread Mohammad Shareef M
Create new database and Restore the backup file Thanks & Regards, Mahammad Shareef M +919741482617 +971501340618 +971581756035 On Thu, Oct 11, 2018 at 4:01 PM Mohammad Aqib wrote: > Hi All, > I have a task to migrate all data into a new database using "backup.sql" >

How to migrate old database into new database using python script

2018-10-11 Thread Mohammad Aqib
Hi All, I have a task to migrate all data into a new database using "backup.sql" file. How to write a Python script to do this task. Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: plotly gantt chart python - when we click bar it shoud redirect to another page. Can we implement href with plotly graph

2018-10-11 Thread Mohammad Shareef M
can we not create hover text and y axis label different for python plotly gantt chart? Thanks & Regards, Mahammad Shareef M +919741482617 +971501340618 +971581756035 On Thu, Oct 11, 2018 at 1:54 PM Shareef 617 wrote: > plotly gantt chart python - when we click bar it shoud redirect to > a

Re: Create Gantt chart for Tasks

2018-10-09 Thread Mohammad Shareef M
Help me out to implement Gantt Chart. not graph Thanks & Regards, Mahammad Shareef M +919741482617 +971501340618 +971581756035 On Tue, Oct 9, 2018 at 5:59 PM Pawel Grajewski wrote: > > https://simpleisbetterthancomplex.com/tutorial/2018/04/03/how-to-integrate-highcharts-js-with-django.html

Re: How to save multiple model form in one template?

2018-09-07 Thread Mohammad Aqib
Show your models.py. On Fri, Sep 7, 2018 at 4:13 PM Django Lover wrote: > > I have one page, which I have to show three model form and three > different submit button for each. > > My question is how I can save these three form individually? > > FOLLOWING IS CODE:- > > **form.py** > > > class Us

Re: Hi

2018-09-03 Thread Mohammad Aqib
Add below line into your model. image = models.ImageField(upload_to='pathwheretoupload') On Mon, 3 Sep 2018, 10:41 pm Mikhailo Keda, wrote: > Check the docs - > https://docs.djangoproject.com/en/2.1/ref/models/fields/#django.db.models.ImageField >> >> -- > You received this message because you

Re: Error: Not able to create table using models (Backend mysql)

2018-08-28 Thread Mohammad Aqib
This password doesn't belong to mysql. This belongs to your database 'hospital'. On Wed, Aug 29, 2018 at 10:07 AM Sonali Vighne wrote: > I have not set password to My MySQL server during installation > > On Tuesday, August 28, 2018 at 5:42:30 PM UTC+5:30, Mohammad Aqi

Re: Error: Not able to create table using models (Backend mysql)

2018-08-28 Thread Mohammad Aqib
Set mysql password. Without password how you can access mysql. See DATABASES = { *'default'*: { *'ENGINE'*: *'django.db.backends.mysql'*, *'NAME'*: *'hospital'*, *'USER'*: *'root'*, *'PASSWORD'*: *'password'*, *'HOST'*: *'localhost'*, *'

Re: Error: Not able to create table using models (Backend mysql)

2018-08-28 Thread Mohammad Aqib
make sure you have installed correct Django and MySQLclient versions. If not try to change the versions. or give permissions to user grant usage on schema public to username;grant create on schema public to username; On Tue, Aug 28, 2018 at 1:20 PM Sonali Vighne wrote: > > I am getting this e

Fresh Django with mod_wsgi and apache goes Time Out on 18.04

2018-07-07 Thread Mohammad Etemaddar
I have installed Ubuntu server 18.04 and *VirtualMin* on it. installed python3-pip and then virtualenv. Also installed *libapache2-mod-wsgi-py3* Created new virtual server and configured the modwsgi for it. Also created fresh django website for it. But I get Timeout error! Here is my apache config

django-vue

2018-01-31 Thread Mohammad ariyan bin layek
Hii guys is there any good resouce to integrate django with vue ? -- 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. To p

Re: How to get two django rest framework to communicate with each other

2018-01-15 Thread Mohammad Etemaddar
Excuse me for giving advice for this change. But why don't you put these two projects in one Django project as two apps? You have two options. First you can make a ManyToMany relationship. Of course this has a problem. For example some people may not want to share his/her future information to a

HTTP Error 403: Forbidden

2018-01-11 Thread mohammad
henticationMiddleware', 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.security.SecurityMiddleware') Traceback: File "C:\Users\mohammad\D

  1   2   >