Scrim
but not, i did it in prod database
cj
but not, i did it in prod database
did you delete a table manually in a prod database? 🙀🙀🙀🙀🙀🙀🙀🙀🙀🙀🙀🙀🙀🙀
cj
restore it using the latest backup of that DB
cj
and do it again the proper way using django's migrations
cj
restore it using the latest backup of that DB
(let's hope he won't come saying: "I don't have a backup of the production DB")
D
but not, i did it in prod database
What database do you use? Postgres?
Scrim
yes
Scrim
i dont have prod backup
Scrim
😭
Scrim
it's my first app
D
did you check this question on SO: https://stackoverflow.com/questions/33259477/how-to-recreate-a-deleted-table-with-django-migrations#37369497
Scrim
and still online 1 week , so i dont tell client i lost all files in this fucking start
Scrim
@836938256 , i Did it
Scrim
so not crete
Scrim
nothing happened
cj
and still online 1 week , so i dont tell client i lost all files in this fucking start
well... if you're on that point, then revert all migrations to zero and run migrations again 🤷🏻‍♂️ you're fucked up already, nothing could be wrong
Scrim
:(
Scrim
great idea rsrsr
Gk
Any good tutorial to deploy a website made in Django on Heroku?
Scrim
Heroku has your own tutorial
Scrim
You can find it there
Gk
Can we put it on shared hosting like Godaddy ?
Ghorz
But there is a backdrop, if your project requires installing apt packages, like memcache, redis server, you're better off with vps or cloud containers
Anonymous
I am trying django is valid methods but its not working it will not validate my data
Aneesh
In mixpanel users-> explorer Iam getting users without events Any one know about this?
kancharla
Does any one have idea about how to upload images to MYSQL
kancharla
Please suggest me best tutorial if possible
techie
Hey can anyone help me what to learn after django
Abrar
js
Gk
Yes, namecheap.com
Any video tutorial
Ghorz
No
Ghorz
It's relatively easy
Ghorz
Any video tutorial
https://www.namecheap.com/support/knowledgebase/article.aspx/10048/2182/how-to-work-with-python-app
Ghorz
As long as you don't require installing any Linux app via sudo apt-get
Vishal
Hi can anyone help me I want to generate a unique key of fixed length which will be the sku of products. I know a bit about uuid
NIMESH
Let's say I created a web application in PHP and I have django application for same website anybody know how to integrate
Ghorz
If you're talking about migration
Ghorz
You got to do a bit sql work
Xavier
use uuid.uuid4
it's much easier to use
Xavier
also it doesn't involve your internet security numbers (i guess uuid5 generate random unique id with your ip or stuffs, cant remember)
NIMESH
Explain in detail
No I have a website in PHP and I have project in django which consists of two three web pages now I want to merge it
NIMESH
Let's say abc.com is PHP
NIMESH
I want abc.com/django in django
Jimmies San
I want abc.com/django in django
use your webserver to map that url to the django app
NIMESH
Exactly
If website is nodejs also will it work
Jimmies San
If website is nodejs also will it work
sure, it depends from the webserver configuration, not what is behind the webserver
محمد دلشاد
i have a query and it not related to django or python can i ask here ? bcs i m not getting answers anywhere else
Udasi
Hey people! I want to implement 3 models this way: class Item(models.Model): title = models.CharField(max_length=200) price = models.DecimalField(max_digits=7, decimal_places=2) class Variation(models.Model): item = models.ForeignKey(Item, on_delete=models.CASCADE) color = models.CharField(max_length=8) class Image(models.Model): variation = models.ForeignKey(Variation, on_delete=models.CASCADE) image = models.ImageField(upload_to='images/') Now, in the Django Admin I want the user to be able to create an 'Item' object, where there should be an inline 'Variation' and also the ability to add variable number of images for each variation. But Django doesn't support nested inlines. Here's my admin.py: from django.contrib import admin from .models import Item, Variation class VariationInline(admin.StackedInline): model = Variation extra = 1 @admin.register(Item) class ItemAdmin(admin.ModelAdmin): fieldsets = [ (None, {'fields': ['title', 'price']}) ] inlines = [VariationInline] What could be the solution to this?
NIMESH
Yes
Do you know Any resources
NIMESH
Do you know Any resources
So that I can work
Jimmies San
Do you know any where I can refer
wha t webserver are you using?
Jimmies San
with nginx is very easy, just config a location and is done
Ghorz
Do you know Any resources
It's on the sites kb
Ghorz
DDG it
Ghorz
Ngnix
He meant on shared hosting
Jb
solved? if not show/check Orderitems model
solved old error but i have another error TypeError at /cart/ expected string or bytes-like object
Muthu
I have a problem in creating nested serializers
wanderer
I was trying to deploy my django web app on heroku After push everything successfully to heroku master , its says in heroku logs —tail At=error code= H10 desc=“App crashed”
wanderer
Help!!!!!!
Muthu
when i post data it shows designation with this designation name already exists.
Muthu
how can i solve this
Udasi
Guys anyone ????
you should provide more details, this app crash could be for so many reasons
Muthu
Anyone please help me
Muthu
I am stuck here
Udasi
Anyone please help me
I've not worked with serializers, so i can't help you there sorry