Strange south migration, after django updating (from 1.2.5 to 1.2.7)

2012-03-18 Thread shiva
Hi! In our project, we have south 0.7.3 and django 1.2.5. After updating django, to version 1.2.7 I have got strange south migration, with equal backwards and forwards content. Models and migrations listed here: https://gist.github.com/2069316 Can anyone describe, why did it happend? Thanks! --

Re: Strange south migration, after django updating (from 1.2.5 to 1.2.7)

2012-03-18 Thread shiva
Andrew Godwin answered for this question in South mailing-list: http://groups.google.com/group/south-users/t/e0f228eb09a11ec9 2012/3/18 shiva : > Hi! > > In our project, we have south 0.7.3 and django 1.2.5. After updating > django, to version 1.2.7 I have got strange south mig

Model validation fails, when inherited model redeclare parent field

2012-04-03 Thread shiva
Hello! In our apps (that use Django 1.2.7) we use following models: class BaseRegistration(models.Model): exhibition = models.ForeignKey(...) year = models.IntegerField(...) user = models.ForeignKey('auth.User') class BarcodeRegistration(BaseRegistration): class M

Re: Model validation fails, when inherited model redeclare parent field

2012-04-03 Thread shiva
Jani, thank you. 2012/4/4 Jani Tiainen : > Hi, > > You'ew hitting limitation of Django ORM which prohibits overriding fields. > > https://docs.djangoproject.com/en/1.3/topics/db/models/#field-name-hiding-is-not-permitted > > > 4.4.2012 6:34, shiva kirjoitti: > &

django 1.3 upgrade problem

2011-10-02 Thread shiva
I recently updgraded to django 1.3. After the upgrade, I get the following error whenever I used request.POST: Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py", line 86, in get_response response = None File "/public/gdp/trunk/src/ukl/lis/pr

makemigrations

2022-09-15 Thread shiva singh
Hello I am new in Django users group. I am using Django and faching a problem when i do any changes in existing models after run makemigrations. This is problem :-It is impossible to add a non-nullable field 'logo' to jobdetails without specifying a default. This is because the database needs

Re: makemigrations

2022-09-15 Thread shiva singh
Thank You everyone for help me On Friday, September 16, 2022 at 4:25:44 AM UTC+5:30 fortu...@gmail.com wrote: > In the new added field “logo” set default = None or specify a default > value > > On Thu, Sep 15, 2022 at 8:38 PM shiva singh > wrote: > >> Hello I am n

session related error

2022-09-16 Thread shiva singh
Hi everyone anyone give solution for this problem: AttributeError: 'SessionStore' object has no attribute 'id' [16/Sep/2022 19:28:16] "POST /jobpostsubmit/ HTTP/1.1" 500 66025 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

session id attribute error

2022-09-19 Thread shiva singh
hello everyone please help me how can solve this problem:-[image: image.jpeg] -- 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...@googlegr

SessionStore attribute error

2022-09-19 Thread shiva singh
hello everyone please help how can solve this problem? this is session code:- if user.password==password and user.role=="Company": com=Company.objects.get(user_id=user) request.session['id']=user.id request.session['role']=user.role

Re: SessionStore attribute error

2022-09-20 Thread shiva singh
t; On 20/09/2022 08.21, shiva singh wrote: > > hello everyone please help how can solve this problem? > > > > I suggest you ignore all the replies you've already gotten and then post > the exact same question a third time. > > Kind regards, > Kasper Laudrup >

Multistape data send to database

2022-11-03 Thread shiva singh
hello Everyone can anyone give a idea to how can send multistape form data into data base with validation -- 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 djang

Newbee: Unable to change the date because Calender won't POP-UP as said in Tutorial

2013-01-23 Thread Shiva MSK
shortcut and a convenient popup that lists commonly entered times." But i am not getting these Pop-up ,so i am unable to change the date . Please Suggest Something . Thank you, -Shiva -- You received this message because you are subscribed to the Google Groups "Dja

Incrementing the slug by avoiding Integrity error in django models save method

2013-08-12 Thread shiva krishna
I have a model with two fields as below **models.py** class Publisher(models.Model): name = models.CharField(max_length=200) slug = models.SlugField(max_length=150, unique=True) def save(self, *args, **kwargs): if not self.id and not self.slug:

How to store an object in django sessions framework

2013-08-16 Thread shiva krishna
I have an django and i am trying to store an object in django session varaible, and trying to access that in the redirected view, but its showing `keyerror` as below def payment(request): if request.method == 'POST': form = CardForm(request.POST) if form.is_v

Re: Pop-up forms

2019-01-09 Thread shiva kumar
As i am new to django i dont know about pop-up forms. can you give an overview of it please. On Tue, Jan 8, 2019 at 7:34 PM DrTen wrote: > Hi Did you ever solved this issue, its 2019 and I still can't find a > working solution. > > On Monday, October 9, 2006 at 3:31:19 PM UTC-5, hernan43 wrote:

Re: Get the maximum possible ID value for a primary key?

2019-01-09 Thread shiva kumar
can you explain it indetail On Wed, Jan 9, 2019 at 7:18 PM Stodge wrote: > Is there a way to get the maximum value that an ID can be for a model that > uses AutoField for its primary key? For example, in PostgreSQL I could do: > > SELECT maximum_value FROM information_schema.sequences WHERE > s

Re: Django template translation not working as expected

2019-01-10 Thread shiva kumar
Can you explain what are django translation On Thu 10 Jan, 2019 11:59 pm Ashutosh Das I am using django 2.1 , here is all the settings related to translation: > > > MIDDLEWARE = [ > 'corsheaders.middleware.CorsMiddleware', > 'django.middleware.security.SecurityMiddleware', > 'django.c

Re: template not exist error snap in attechment

2019-01-11 Thread shiva kumar
Can you put your project file structure. On Fri 11 Jan, 2019 5:46 pm NAveeN Kumar Reddy < knaveenkumarredd...@gmail.com wrote: > Check the link before pattern in path function > > On Fri 11 Jan, 2019, 4:43 PM tribhuvan kishor < > tribhuvankishor...@gmail.com wrote: > >> URL >> path('//',views.po

Re: template not exist error snap in attechment

2019-01-11 Thread shiva kumar
once post your setting.py file content . i will try to figure it out. On Sat, Jan 12, 2019 at 11:16 AM tribhuvan kishor < tribhuvankishor...@gmail.com> wrote: > this is my directory structure > > On Fri, Jan 11, 2019 at 9:19 PM Martin K wrote: > >> TEMplate DIrectory >>> PROJECT/APP/template/bl

Re: template not exist error snap in attechment

2019-01-12 Thread shiva kumar
jango.db.backends.mysql', >> 'HOST': 'localhost', >> 'PORT':'3306', >> 'USER': 'root', >> 'PASSWORD': 'root', >> } >> } >>

Re: problem in activating virtual environment in Django with ". \Scripts\activate" command

2019-01-17 Thread shiva kumar
Can you tell which os ur using. On Fri 18 Jan, 2019 12:48 am Django Geek Aditya Shell Output after entering command is > PS E:\todo> . \Scripts\activate > . : The term '\Scripts\activate' is not recognized as the name of a > cmdlet, function, script file, or operable > program. Check the spelling

Re: Loading Django views inside template with JQuery

2019-01-22 Thread shiva kumar
I think you want to load the data from view to html using jQuery. I hope ajax concepts will used. Once try it. On Tue 22 Jan, 2019 6:13 pm Ricardo Cataldi Hy guys, you all right? > > I have a problem that it seems not to be any answer in Stack Overflow. > > I need to load three views inside a te

Fwd: data sharing with multiple clients by server simultaneously

2019-01-30 Thread shiva kumar
-- Forwarded message - From: shiva kumar Date: Tue 29 Jan, 2019 11:21 pm Subject: data sharing with multiple clients by server simultaneously To: Hi guys. I have a doubt regrading communication b\w client and server. consider an example there are 20 clients continuously

Use of asyncio

2019-02-01 Thread shiva kumar
Can anyone explain to which applications asyncio used for. -- 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

error at re_path

2018-09-23 Thread shiva kumar
getting error saying page not found when using re_path for defining our own url pattern. re_path(r'^home/(?p[0-9]{4})/$',views.home1), this was how i used the function and it showing error at ?p. is there any mistake suggest a solution. -- You received this message because you are subscribed

unable to create modelform object in views

2018-11-22 Thread shiva kumar
og/') else : form=loginform() form1=modelform() return render(request,'login.html',{'form':form,'form1':form1}) def hidemehtml(request): print("shiva") return render(request,'index.html',{}) model file from djang

Re: Make a loop to get request.POST information

2018-11-26 Thread shiva kumar
Try this Replace 'input_'.a with 'input_'+str(a) I think it will work On Mon 26 Nov, 2018 9:43 pm Thibaud MONTAGNON Hi, > > I got 3 differents input named input_1, input_2, input_3 and I want to > make a loop to put them in the ddb. > > I try to use this code but it dosent work... > > row=[

unable to do migrate when defining custom user model

2018-11-26 Thread shiva kumar
i am defining my own custom user model using AbstractBaseUser class and BaseUserManager class. and i got no error when doing 'python manage.py makemigrations' but it is showing that db not created while running 'python manage.py migrate' . Any suggestions? -- You received this message because y

Re: How to get a multiple select widget for the Admin without a queryset

2018-11-26 Thread shiva kumar
Can you explain what ur problem briefly. On Tue 27 Nov, 2018 8:54 am Mike Dewhirst In the Admin I would like to provide the user with checkboxes against a > list of options not stored in the database. > > Specifically, I want to retrieve a comma separated list of integers from a > model field cho

Re: runserver error rectification

2018-11-27 Thread shiva kumar
import polls in mysite/mysite/urls.py i think it will work On Tue, Nov 27, 2018 at 3:00 PM Sanjay Malviya wrote: > What modification to codes required, pls in project > mysite/mysite/polls(app) > polls/views.py > from django.http import httpresponse > def index(request): > return httprespo

forms.FORM in django

2018-11-27 Thread shiva kumar
I am new to django and i am learning it slowly. I worked on forms but i have one doubt, what forms.FORM indicate. i know we are inheriting forms in to our class but i dont understand specifically what it is. how FORM will be used could anyone please explain what it is -- You received this me

Integrating ml in django

2018-12-04 Thread shiva kumar
I have one doubt regarding django. That, can we use ml concepts and packages in django as our backend technology That is by using ml concepts like numpy, tensor flow can we make data present in database more functional to use like predictions etc. Any suggestions will be helpful.that makes me some

Re: How to extract a number from a url

2018-12-05 Thread shiva kumar
Use in place of number An add extra parameter in views which u will relate this to On Thu 6 Dec, 2018 2:18 am Sourajit Mohanty I want to extract the number from this url 'music/6/newsongs/' so that I > can use that number to redirect it to another page.. > How can I do that?? > > -- > You rec

Re: Manage static files using Jinja2

2018-12-19 Thread shiva kumar
Yes static files need a url path. But that path should be mentioned in setting.py file. That makes django, when there is use of css or js files it refers to that path On Tue 11 Dec, 2018 4:32 am I am using the documentation to learn Django. When I started creating > static files, I started to get

Re: help

2018-12-19 Thread shiva kumar
Once post ur forms.py file. Check views and url files. There are errrors On Tue 11 Dec, 2018 7:55 pm Tosin Ayoola getting this error when i click on a new link i just added please can > anyone help out below is my codes, views, url > > > ##url > > from django.urls import path > from . import view

Error when installing channels

2018-12-22 Thread shiva kumar
Hai guys, I am getting error when installing channels using pip. These is the error ' need Microsoft visual c++ 14.0' Can anyone suggest how to download and get it done. I tried to do it. I am unable to understand how to do and what to do. Pls respond to my issue. -- You received this message

Re: Loop over Django objects and Bootstrap cards

2019-01-03 Thread shiva kumar
I think use inline div elements in place of block. Block elements makes u to start elements in next line. On Thu 3 Jan, 2019 7:41 pm valentin jungbluth I used UploadField so I just have to use > {{ object.fieldname.url }} > > and it works. > > But my question is : How I can gather all documents a

MicroService related issue

2024-10-11 Thread shiva singh
Hello I am currently working on a microservices project using Django and have encountered an issue. i am facing issue when create microservice project using django i am created 2 difrent django project in one common folder and one project name is authentication and second project name is repairm

Re: MicroService related issue

2024-10-22 Thread shiva singh
> *sunnexaj...@gmail.com * > > > > On Mon, Oct 14, 2024 at 1:18 AM Konstantinos Dimitropoulos < > cdemetropou...@gmail.com> wrote: > >> Hello, why don't you create a project with two apps? Authenticate and >> repaire >> >> Le ven. 11 oct. 2024,

Re: MicroService related issue

2024-10-22 Thread shiva singh
unnexaj...@gmail.com * >> >> >> >> On Mon, Oct 14, 2024 at 1:18 AM Konstantinos Dimitropoulos < >> cdemetropou...@gmail.com> wrote: >> >>> Hello, why don't you create a project with two apps? Authenticate and >>> repaire >>> >>

Re: MicroService related issue

2024-10-22 Thread shiva singh
2.mention custom apps in settings.py file in installed apps >> 3.try like >> from authenticate.models import #modelnames >> >> On Fri, Oct 11, 2024, 14:31 shiva singh wrote: >> >>> Hello >>> I am currently working on a microservices project using

Python Django Developer Job

2024-12-24 Thread shiva singh
.gmail.com. Shiva Singh -1.pdf Description: Adobe PDF document

Re: Exciting Opportunity: Join Our Django WhatsApp Bulk Messaging Project!

2024-02-21 Thread Shiva Shankar Pallapu
Interested. My WhatsApp number is 8309025511 On Wed, Feb 21, 2024 at 6:33 PM yavoucko lye wrote: > interesting. My number is +221778399425 > > On Sun, Feb 18, 2024 at 5:48 PM SURAJ TIWARI > wrote: > >> 🚀 Join Our Django WhatsApp Bulk Messaging Project! >> >> 👋 Hello everyone, >> >> Are you look

Re: Why would a deployed site shows up with distorted layout

2024-02-29 Thread Shiva Shankar Pallapu
STATIC_URL = '/static/' if not DEBUG: STATIC_ROOT = '/home/django/www-data/ example.com/static/' STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'static/'), ] Try this I Collected it from Django Documentation. On Thu, Feb 29, 2024 at 11:54 AM Ram wrote: > Hi, > > We are able to deploy our pre-produc