Baku
Anyone use Digitalocean for deployment ?
Виктор
Anyone use Digitalocean for deployment ?
yes, please no meta questions)
Виктор
what u need?
Baku
what u need?
At the first registration, how much do you pay?
Baku
5 dollars ?
Виктор
if u want to study django, digitalocean have image for this
Виктор
is ready to test
Виктор
At the first registration, how much do you pay?
https://marketplace.digitalocean.com/apps/django
Baku
Tq bro
Виктор
May be English?
Masud
hello user not able to login in via email and password.but superuser can login in user fronted. whats the problem?
Masud
https://hasteb.in/yopumizi.py check my code pls
𝕸𝖆𝖗𝖖𝖚𝖊𝖟
May be English?
I'm so sorry
Masud
no ,
Виктор
Check, when login() skip
𝕸𝖆𝖗𝖖𝖚𝖊𝖟
I'm doing an internship at React, all right. And I decided I was going to make a commit, I type "git status" to see what I'll add and then "git add .", I was going to check if everything was okay with "git status" it turns out the file was corrupted . And I think I lost all the git logs I had or I don't know I tried to go back with a git checkout but the problem is that a .git file is corrupt and won't let me do git status
Виктор
no ,
Just try, it's really easy
Masud
will it help me to solve that?
Masud
can you cite a link to get more information about it.
Masud
VS code
𝕸𝖆𝖗𝖖𝖚𝖊𝖟
Hmm, show git error
aurelio@desktop-mint-H61H2-CM:~/Desktop/myapp$ git status HEAD detached from 677eb49 Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) modified: package.json modified: src/App.css modified: src/App.js no changes added to commit (use "git add" and/or "git commit -a") aurelio@desktop-mint-H61H2-CM:~/Desktop/myapp$ git add . aurelio@desktop-mint-H61H2-CM:~/Desktop/myapp$ git status error: object file .git/objects/c0/f17a293617c64fef6de90a93ac3185d52f5e82 is empty fatal: loose object c0f17a293617c64fef6de90a93ac3185d52f5e82 (stored in .git/objects/c0/f17a293617c64fef6de90a93ac3185d52f5e82) is corrupt aurelio@desktop-mint-H61H2-CM:~/Desktop/myapp$ git status error: object file .git/objects/c0/f17a293617c64fef6de90a93ac3185d52f5e82 is empty fatal: loose object c0f17a293617c64fef6de90a93ac3185d52f5e82 (stored in .git/objects/c0/f17a293617c64fef6de90a93ac3185d52f5e82) is corrupt
𝕸𝖆𝖗𝖖𝖚𝖊𝖟
this
Виктор
can you cite a link to get more information about it.
https://stackoverflow.com/questions/40937544/how-to-use-visual-studio-code-to-debug-django
Masud
thanks buddy checking
𝕸𝖆𝖗𝖖𝖚𝖊𝖟
Виктор
I think u can new clone repo ))
𝕸𝖆𝖗𝖖𝖚𝖊𝖟
Виктор
I have in companies adopted often write in its branch to do from-for such a
Виктор
And recreate git init
𝕸𝖆𝖗𝖖𝖚𝖊𝖟
What caused the mistake? So that it doesn't happen to me again...
Виктор
git commit -m "lel"
Виктор
Check it
Виктор
𝕸𝖆𝖗𝖖𝖚𝖊𝖟
And recreate git init
okay, Thank you very much.
𝕸𝖆𝖗𝖖𝖚𝖊𝖟
𝕸𝖆𝖗𝖖𝖚𝖊𝖟
git commit -m "lel"
$ git commit -m "lel" error: object file .git/objects/c0/f17a293617c64fef6de90a93ac3185d52f5e82 is empty fatal: loose object c0f17a293617c64fef6de90a93ac3185d52f5e82 (stored in .git/objects/c0/f17a293617c64fef6de90a93ac3185d52f5e82) is corrupt
Виктор
No thinks)
𝕸𝖆𝖗𝖖𝖚𝖊𝖟
The error remains
𝕸𝖆𝖗𝖖𝖚𝖊𝖟
Okay, thank you. I'll start the repo from zero.
Виктор
Oh
Виктор
I find
Виктор
Okay, thank you. I'll start the repo from zero.
https://stackoverflow.com/questions/12571557/fixing-a-corrupt-loose-object-as-a-commit-in-git/12583865
Виктор
Delete objects from folder)
𝕸𝖆𝖗𝖖𝖚𝖊𝖟
I already solved it, thank you very much
Pandu
Some articles are using config(decouple) but some articles are using os.getenv(export) witch is best way to set database values in Django?
Masud
i am not able to solve the problem😌
Masud
I see when normall user submit form for login it showing blank data in backend...
Masud
but if superuser submit for login in user front it show full filled data😢
B419045_Rashmi Ranjan Das
Can anyone refer me where to learn django...because i have learnt all the basic parts or it...starting from.templates MVT...to ORM Registration..user login and logout....how to move forward from here..?
Виктор
After y can check Django 3 by example, to take practices
Nikolay
Crush course Django 3 book or udemy course Django 1
I don't think Django 1 course is best way to learn Django now, there are a lot of fresh courses on udemy
Nikolay
It's name of course, but this course upgraded for ver 3
Only resurces updated, or video too? In my expirience in udemy, only resurces updated
Alex
clear explanations and updated
Виктор
But if u want to good all, needs to read ultimate python web book
Deepak
hi folks when i add ImageField in models then tried to run makemigrations then it shows error
Deepak
AssertionError: CustomerFilter resolved field 'pic' with 'exact' lookup to an unrecognized field type ImageField. Try adding an override to 'Meta.filter_overrides'. See: https://django-filter.readthedocs.io/en/master/ref/filterset.html#customise-filter-generation-with-filter-overrides
Nikolay
Deepak
oh yeah
Nikolay
clear explanations and updated
"Building a website with Django (Python)" course updated Oct. 30, 2019, not realy up to date 🙁
Alex
for django you can go for Dennis ivy
Alex
he seem to be most latest to me https://youtu.be/QSyrThcaghg
Prakash
class Candidate(models.Model): id = models.CharField(db_column='Id', primary_key=True, max_length=30) # Field name made lowercase. fkcountry = models.ForeignKey('City', models.DO_NOTHING,db_column = 'fkcountry') # Field name made lowercase. fkcity = models.ForeignKey('City', models.DO_NOTHING,db_column = 'fkcity') # Field name made lowercase. lastmodifed = models.DateTimeField(db_column='LastModifed') # Field name made lowercase. class Meta: managed = False db_table = 'Candidate' class City(models.Model): cityname = models.CharField(db_column='CityName', primary_key=True, max_length=30) # Field name made lowercase. fk_country = models.ForeignKey('Country', models.DO_NOTHING, related_name='fk_Country') # Field name made lowercase. lastmodifed = models.DateTimeField(db_column='LastModifed') # Field name made lowercase. class Meta: managed = False db_table = 'City' unique_together = (('cityname', 'fk_country'),)