Aditi
Whatever i m changing in view.py on app ..it is not reflected on browser and showing error not able to catch url 404
Aditi
Is it gud idea or bad when we use django ide will be visual studio code
Aditi
Or m wrong here ..we have to use pycharm any suggestions
Charly
Charly
And editing views is not the only thing required to have something in the broswer, you need to add urls
Charly
so better to follow the official tutorial
Aditi
I followed everything..
Charly
So show us, your urls.py your views.py and what exact url are you usuing in the browser
Aditi
After running django server when i run this command normal command window it show this error
Aditi
Media isn't allow ??
Charly
Aditi
In this group
Doragonsureiyā
In this group
To share code or error tracebacks, use a pasting service, like:
- https://linkode.org
- https://dpaste.org
Aditi
This app can't run on your pc..
Aditi
Ok..Thanks for prompting reply..once again i will have a look ..then come back again if not possible for me
Muhammed
IntegrityError at /user/register_employer/NOT NULL constraint failed: jobs_company.User_id
andriiko489
Charly
from where user comes? seems its None
Muhammed
I try to create a user and company together
Charly
Muhammed
It's solved thanks all
Jamie
nailed it
Almaz
What books can I read? It doesn't matter what django 4.1 version at this moment, and the book I'm going to read will be django version 1-3
warkiraw
I don’t need a ready made project,I need a good tutorial
Almaz
How do I make it so that I see the name of the objects in django administration? I wrote this method
Def __str__(self):
return self.name
But it didn’t work
The Inspired
Almaz
The Inspired
you have written Def __str__(self):
The Inspired
that first letter - D
The Inspired
its capital. it should be lowercase
The Inspired
def __str__(self):
Almaz
I have in code a little -d
The Inspired
show your code
Shivani
Anyone help me.... How I get foreignkey field name instead of I'd
Shivani
I saved data easily but get its I'd in our api
The Inspired
are you using serializers?
Shivani
Database show its name but get method show I'd
Shivani
Almaz
class Category(MPTTModel):
name = models.CharField(max_length=100)
slug = models.SlugField(max_length=100)
parent = TreeForeignKey(
'self',
related_name="children",
on_delete=models.SET_NULL,
null=True,
blank=True
)
def __str__(self):
return self.name
The Inspired
show serializer
The Inspired
model is fine
The Inspired
show serializer
Shivani
Ya model is also fine
Shivani
Show me serializer and view
The Inspired
Shivani
Yes I registered model in admin
Shivani
Data is also save and database show its name not id
Almaz
Shivani
Site is. Not working
The Inspired
Yep
and its still not showing in the admin?
hmm.. restart the server
Shivani
Ok
Doragonsureiyā
Site is. Not working
If you need help, don't just say "not working", explain in detail what's not working the way you expect it to
Shivani
Almaz
Bro i restarted many times but it steel write object(number)
The Inspired
can you post a screenshot here?
The Inspired
oh right...
The Inspired
pics not allowed
The Inspired
ok
Almaz
ok
Thanks, I’ll write to you
!$@@¢
static files not reloading
Can you help
Andrej
Which platforms do you use to find Django projects to work on?
warkiraw
Everybody
I can use JavaScript with Django?
Doragonsureiyā
preethi
warkiraw
Dinesh
Could u pls help me?
Maxim
Charly