Good Day,
I got this error how can I fixed it, plz help me out,
views.py
def edit_view(request, id , *args, **kwargs):
d1 = data.objects.get(id=id)
if request.method == 'POST':
form = dataForm(request.POST, instance=d1)
if form.is_valid():
form.save()
SQL Server 2019
Python 3.9.6
pip 21.2.3
python -m django --version 3.2.6
asgiref 3.4.1
astroid 2.6.6
colorama 0.4.4
Django 3.2.6
django-mssql-backend 2.8.1
django-pyodbc1.1.3
django-tastypie 0.14.3
isort5.9.3
lazy-obj
I am not able to see the form on admin page to add the data
First
-First
-settings.py
-urls.py
-travello
-migrations
-urls.py
-models.py
-admin.py
here is the models.py
from django.db import models
# Create
above is the image of the error
admin.py
from django.contrib import admin
from travello.models import Destination
class ContactAdmin(admin.ModelAdmin):
Clist_display = [ 'name', 'department', 'lalal']
# Register your models here.
admin.site.register(Destination,ContactAdmin)
models.py
from dja
Hey there!!
Hope you are doing well in Django.
I am a beginner in Django and completed couples of a tutorial in Django.
Please suggest project ideas or resources of Django projects to learn for
me as beginners.
--
You received this message because you are subscribed to the Google Groups
"Djang
Hey there!!
Hope you are doing well in Django.
I am a beginner in Django and completed couples of a tutorial in Django.
Please suggest project ideas or resources of Django projects to learn for
me as beginners.
--
You received this message because you are subscribed to the Google Groups
"Django
alled Sess.
3. Running python manage.py syncdb
The step 3 fails with error:
__
File "D:\Vikram\Software\PythonEncode\lib\site-packages\django\db
\models\loading.py", line 78, in load_app
models = import_module('.models', app
that
has read-only access on v$session table, query the data and present it
in webpage.
Do I write views that directly talk to these tables, pull data and
render it online? Or is there a better way?
Thanks
Vikram
--
You received this message because you are subscribed to the Google Groups
8 matches
Mail list logo