Mirco
I know but not deeply I'm fresher
that's why I'm telling you to study OAuth2 first
Anonymous
Hey👀
cr
any idea?!
Share view
Morteza
Share view
i have try to delete it from django admin panel
T I T T U
that's why I'm telling you to study OAuth2 first
I had completed Gmail ,twitter Facebook login In this Instagram https is facing problem Then I convert to ngrok and it's not work correctly Then I tried to httpslocalhost
Morteza
Share model then
https://del.dog/adacucrest
IND_
guys i need to build a app where you can mark locations on maps it will be stored in db and can see all locations marked at one map
IND_
any one have an idea
Doragonsureiyā
guys i need to build a app where you can mark locations on maps it will be stored in db and can see all locations marked at one map
So, why don't you do it yourself first? When you have an issue with the Python code you wrote (read rule 5️⃣ to show your code), come back here and people will help you. 😉
Morteza
https://del.dog/adacucrest
i understood what the problem was, it was from one of my GenericRelation field that called *amazing* thanks for the following.
Morteza
i understood what the problem was, it was from one of my GenericRelation field that called *amazing* thanks for the following.
For those developers who may face my problem, I will explain the whole problem. The problem was in the order between the content_type and the object_id, which in principle should be put first the object_id, then the content_type.
Gürol
http://localhost:8000/_models/earth.mtl
Gürol
page not found alıyorum
Abdul Shakoor
Hi, is there any free hosting websites besides Heroku and PythonEveryWhere?
Mauricio
Hi friends, I have a problem with my manage.py of a specific project. When I make a change it doesn't reload automatically I have to stop the project (Ctrl+C in Windows) and run it again. I already tried all the solutions available on stackoverflow, deleted the .pyc files, I opened the project in a tab in incognito mode But the problem persists (only in that project, the rest of the projects work correctly)
Mauricio
I don't know what else I could try, already tried every solution out there on the web
Mauricio
Any advice would be much appreciated
Ameez
how to add multiple user login interface??
Anki|Important texts only
I have created a base.html to hold header and footer for my Django based website and extended that to other html pages that I have created. Wanted to add css to this base.html, but getting no luck. I have already tried inline, internal, external all of them to beautify those ugly buttons on header, but they just no doing anything. please help!!
Anki|Important texts only
i have it
Anki|Important texts only
Create block in base html
{%load static%} <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title></title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" type="text/css" href="{% static 'css/base.css' %}"> </head> <header> <button id="myButton" class="float-left submit-button" >Home</button> <a href='{% url 'about' %}'>About</a></li> <a href='{% url 'contact' %}'>Contact</a></li> </header> {% block content %} {% endblock content %} <footer> <p>this is footer</p> </footer>
Anonymous
As you have created content block create a css block
Anonymous
And derived in
Anki|Important texts only
inside templates i have my html inside static i have css folder and then css files
Anki|Important texts only
even if i mention static/css/base.css not working :(
noneofurfuckinbusiness
Then ur href should be {% static "app_name/css/base.css" %}
Anki|Important texts only
As you have created content block create a css block
ok i dnt know how to do that ... but i will search over internet and try... if i donot succeed i will inform u
noneofurfuckinbusiness
U forgot to mention app name
Anki|Important texts only
the template and the static folders are inside the app
Anki|Important texts only
so do i have to mention app_name
noneofurfuckinbusiness
Yes
noneofurfuckinbusiness
What is static folder directory structure
Anki|Important texts only
app_name/static/css/base.css
Anki|Important texts only
app_name/templates/base.html
noneofurfuckinbusiness
Create a new folder in static with app name
noneofurfuckinbusiness
Then shift ur css, js folders in that new folder
noneofurfuckinbusiness
If that doesn't work, delete cache of browser or open in another browser
Anki|Important texts only
Anki|Important texts only
previously i created a folder with the same name as my app_name
Rup
I am facing this error. when i set blank=True. null value in column "pincode" violates not-null constraint
Rup
still its take as mandatory
Akshit
I am facing this error. when i set blank=True. null value in column "pincode" violates not-null constraint
Not null constraint is raised from db side, its not from frontend For that, you have to set null=True, bcoz by default null is False
appu
Anybody suggest me a best udeny course for django
Anki|Important texts only
Anybody suggest me a best udeny course for django
no course is good enough.. learn enough from some book and start off a project, that is what i will suggest. there is a tone of different ways to do any thing in coding languages ... so learn some python.. learn to create a boilers plate for Django and start off with your own project hope this technique helps u
Anonymous
Anybody suggest me a best udeny course for django
search corey schaffer on youtube and then go and check out his django vedios if you learn through videos.!
Anonymous
hope that helps
Владислав
Guys, who can help write a method for the model, if true, then display that this post is "new" in the template from the update date (time_update) for 3 days? I just don’t rummage in times)
Anonymous
C:\Users\HP\Desktop\skincancer-master\src>python app.py 2021-05-01 13:20:42.286814: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found 2021-05-01 13:20:42.286950: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine. Traceback (most recent call last): File "app.py", line 101, in <module> model = load_model('models/BM_VA_VGG_FULL_DA.hdf5') File "C:\Users\HP\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\keras\saving\save.py", line 211, in load_model loader_impl.parse_saved_model(filepath) File "C:\Users\HP\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\saved_model\loader_impl.py", line 114, in parse_saved_model constants.SAVED_MODEL_FILENAME_PB)) OSError: SavedModel file does not exist at: models/BM_VA_VGG_FULL_DA.hdf5/{saved_model.pbtxt|saved_model.pb}
Anonymous
Hii dears I have a issue for related to models->ReachTextEditor->extraplugin(video)
Ivan Putra
TKO turun dulu ya, sama mau beli 😂😂😂
Anonymous
content = RichTextUploadingField(blank=True, null=True, config_name='special', extra_plugins=['video'], external_plugin_resources=[( 'video', '/static/ckeditor/plugins/video/', 'plugin.js', # 'video/plugin.js' )] )
Anonymous
STATIC_URL = '/static/' STATICFILES_DIRS = [ BASE_DIR / 'static' ] MEDIA_URL ='/images/' MEDIA_ROOT = BASE_DIR / 'static/images' CKEDITOR_UPLOAD_PATH = "uploads/" CKEDITOR_RESTRICT_BY_USER = True CKEDITOR_BROWSE_SHOW_DIRS=True CKEDITOR_CONFIGS = { "default": { "removePlugins": "stylesheetparser" }, 'special': { 'toolbar': 'CMS', 'toolbar_CMS': [ 'uploadwidget', { 'name': 'basicstyles', 'groups': ['basicstyles', 'cleanup'], 'items': ['Bold', 'Italic', 'Underline', '-', 'RemoveFormat'] }, { 'name': 'paragraph', 'groups': ['list', 'indent', 'blocks'], 'items': ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote'] }, { 'name': 'links', 'items': ['Link', 'Unlink'] },{ 'name': 'insert', 'items': ['Image', 'HorizontalRule', 'Table', 'Iframe', ] }, { 'name': 'colors', 'items': ['TextColor', 'BGColor'] }, {'name': 'paragraph', 'items': ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl', 'Language']}, [ 'Video'], ], 'extraPlugins': ','.join(['video']), }, }
Anonymous
when I enter the admin->Posts->video->Browse server it is appear
Anonymous
just : Browse for the image you want, then click 'Embed Image' to continue...
Anonymous
plz who do know solve about this issue?
‎𝙼𝚞𝚑𝚊𝚖𝚖𝚎𝚍 𝙽𝚒𝚑𝚊𝚍
how to capitalize CharField in model?
‎𝙼𝚞𝚑𝚊𝚖𝚖𝚎𝚍 𝙽𝚒𝚑𝚊𝚍
i need to capitalize every word
‎𝙼𝚞𝚑𝚊𝚖𝚖𝚎𝚍 𝙽𝚒𝚑𝚊𝚍
does anybody know?
Anonymous
does anybody know?
Name = UpperCharField(max_length=50, uppercase=True)
‎𝙼𝚞𝚑𝚊𝚖𝚖𝚎𝚍 𝙽𝚒𝚑𝚊𝚍
getting error
‎𝙼𝚞𝚑𝚊𝚖𝚖𝚎𝚍 𝙽𝚒𝚑𝚊𝚍
amount_in_words = models.UpperCharField(max_length=255,default=" ", uppercase=True) AttributeError: module 'django.db.models' has no attribute 'UpperCharField'
Mirjahon
showing this error in terminal.
https://stackoverflow.com/questions/19498740/how-can-i-make-all-charfield-in-uppercase-direct-in-model
Yavno
There is a line html = '''<h1> Name <h1>''' Is it possible to convert to jpeg and save as file? Without creating html file
Ankit
Who can teach me android app development..??