Re: Django vs Spring decision

2021-03-02 Thread laya asiabi
it and one advice its not much important witch language of programming you choose it is important that it support and reach your goal plus it can be developed by others too. best regards, Laya Ostadasiabi On Tue, Mar 2, 2021 at 3:46 AM Jan-Marten de Jong wrote: > Dear Django users, >

Re: Can anyone sove my issue please!

2019-10-22 Thread laya Mahmoudi
I put extra space in '__all__' > > See which i post image its clearly seen extra space over there in meta > class... > > On Tue, 22 Oct 2019, 5:31 pm laya Mahmoudi wrote: > >> At first, you don't need to write a model for user whith this fields. >> Because django user h

Re: Can anyone sove my issue please!

2019-10-22 Thread laya Mahmoudi
pls open this link : > https://stackoverflow.com/questions/58502732/exception-in-thred-django-main-thread > > On Tue, 22 Oct 2019, 5:09 pm laya Mahmoudi wrote: > >> Now what is the error?? >> >> در تاریخ سه‌شنبه ۲۲ اکتبر ۲۰۱۹،‏ ۱۴:۴۵ Parvez Khan Pathan < >>

Re: Can anyone sove my issue please!

2019-10-22 Thread laya Mahmoudi
Now what is the error?? در تاریخ سه‌شنبه ۲۲ اکتبر ۲۰۱۹،‏ ۱۴:۴۵ Parvez Khan Pathan < iamparvezkha...@gmail.com> نوشت: > [image: pyissue1.png] > Sir Already Added! still got error!!! > > On Tuesday, 22 October 2019 16:38:34 UTC+5:30, laya Mahmoudi wrote: >> >> Hi, &

Re: Can anyone sove my issue please!

2019-10-22 Thread laya Mahmoudi
Hi, In your form.py , put fields:"__all__" در تاریخ سه‌شنبه ۲۲ اکتبر ۲۰۱۹،‏ ۱۴:۳۳ Parvez Khan Pathan < iamparvezkha...@gmail.com> نوشت: > > https://stackoverflow.com/questions/58502732/exception-in-thred-django-main-thread > > -- > You received this message because you are subscribed to the

Re: where is the error in pagination?

2019-09-25 Thread laya Mahmoudi
Would you send your html codes relating to pagination در تاریخ چهارشنبه ۲۵ سپتامبر ۲۰۱۹،‏ ۱۵:۰۳ leb dev نوشت: > i tried your answer and display an error : > > That page number is not an integer > > -- > You received this message because you are subscribed to the Google Groups > "Django users"

Re: Virtual Environment error

2019-09-25 Thread laya Mahmoudi
You os is linux pr windows? در تاریخ چهارشنبه ۲۵ سپتامبر ۲۰۱۹،‏ ۶:۴۴ yasar arafath Kajamydeen < yasar...@gmail.com> نوشت: > Dear All, > > Actually i forget my virtual environment name. So when i run -- python > manage.py runserver command its showing error like this . > > >

RE: where is the error in pagination?

2019-09-25 Thread laya
Try this one : paginator = Paginator(queryset_list,8) # Show 25 contacts per page page_request_var = "page" page = request.GET.get(page_request_var) try: queryset = paginator.page(page) except PageNotAnInteger: # If page is not an integer, deliver first page. queryset =

RE: where is the error in pagination?

2019-09-25 Thread laya
Hi, Do you use Class Based View ? Sent from Mail for Windows 10 From: leb dev Sent: Wednesday, September 25, 2019 2:32 PM To: Django users Subject: where is the error in pagination? i have a django project  and it includes pagination i do not know where is the error in my code but once i

RE: TemplateDoesNotExist

2019-09-23 Thread laya
Hi , You should config the template settings: 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [os.path.join(BASE_DIR, 'templates')], Sent from Mail for Windows 10 From: yerri swamy Sent: Monday, September 23, 2019 4:11 PM To: Django users Subject: TemplateDoesNotExist Hi

Re: Class Based View All Methods

2019-09-23 Thread laya Mahmoudi
Mixinviews can works for your purpose در تاریخ دوشنبه ۲۳ سپتامبر ۲۰۱۹،‏ ۱۱:۲۵ Shakil Ahmmed < shakilfci...@gmail.com> نوشت: > Please Can You Give me some Exapmle? > > On Mon, Sep 23, 2019, 1:39 PM Abu Yusuf > wrote: > >> Check this: >>

RE: New user question: Where to put non-form validation code?

2019-07-13 Thread laya
Hi If I got your meaning Truly. It should be mentioned that as I know there is not any difference for using validation in model or View . Usually in model, we use regex for validation and in View it needs to use some methods for Email Validation and etc. Sent from Mail for Windows 10 From:

RE: having problem in login rest API

2019-07-07 Thread laya
Subject: Re: having problem in login rest API It is in user object instead of student object,  right?  Regards, Aldian Fazrihady http://aldianfazrihady.com On Mon, 8 Jul 2019, 11:12 laya, wrote: Hi, Please help me in this part, I stuck in some days, My project is about a university system which

having problem in login rest API

2019-07-07 Thread laya
Hi, Please help me in this part, I stuck in some days, My project is about a university system which professors and students can sign up and login. I use Custom User Django which inherits User Django Model. It should be mentioned that login is by identity number and Student-no and

problem in login rest API framework

2019-07-06 Thread laya
AttributeError:'Student' object has no attribute 'check_password' I user Custom User Model named Student which inherits Django User Model. I have problem in its logon when I want to use check_password. The error is that Student which is a custom user model has not such attribute. I wanna login

Re: Multiple roles Django 2

2019-07-06 Thread laya Mahmoudi
You should add some code in your settings.py like AUTH_USER_MODEL= 'appname.modelname' which inherits django user mode. در تاریخ یکشنبه ۷ ژوئیهٔ ۲۰۱۹،‏ ۳:۳۷ Shazia Nusrat نوشت: > Hi All, > I am having hard time to get multiple roles for users in a project and I > am having errors. > I've added

Re: what is the meaning of this error

2019-07-06 Thread laya Mahmoudi
I usually fix this error by entering the exact version which matches the other installed packages. Like pip install packagenane== version like: 1.10 در تاریخ یکشنبه ۷ ژوئیهٔ ۲۰۱۹،‏ ۸:۱۵ Saeed Pooladzadeh نوشت: > Hello > > I try to use wagtail cms and my ide is visual studio with python plugin.

signup in Django rest API framework With MIXIN

2019-07-02 Thread laya
Hi, I need a help in signing up Custom Model User with MAXIN and be able to edit and delete and see the saved user info . At first , I defined a sterilizer class to get the fields I want to have from user then I defined a class view which the parameter are

Re: Help

2019-06-30 Thread laya Mahmoudi
If you can , send me your project to debug it. در تاریخ یکشنبه ۳۰ ژوئن ۲۰۱۹،‏ ۱۷:۰۵ mail2pramo نوشت: > The give to get the input from the user in table? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group

extend New user model

2019-06-23 Thread laya Mahmoudi
Hi , I am new to django. my project is about a system which some users suck as student and Professors can sign up and login in the system and there are some courses which are defined with a professor and students can take the course. my model is as follow: class User(AbstractUser):

Re: Django field for image with FileAPI, croping, size limit and preview

2017-12-19 Thread laya Mahmoudi
Hello, How should i start designing a website with bottle framework?? On 19 Dec 2017 4:40 am, "IL Ka" wrote: > Hello. > > I am looking for Django application to support ImageField with the > following properties: > * JS FIleAPI in Admin (that means file is uploaded