Anonymous
You can have a landing page where there are all sections and then you can redirect to relevant pages as per category
Actually, the format of all the pages of categories(men, women etc) is same and only content(or data like product name, code, images, description etc) is different which will be extracted from the database.
Anonymous
Yeah that's fine
Ohkk... Thanks..
Anonymous
And if there is only one page in about , contact us.. then for them, no need of apps . Right?
Anonymous
Sounds like code is stored in DB 😳
Not code.. but the content like details, title, code, price etc. 😂😅
Anonymous
And if there is only one page in about , contact us.. then for them, no need of apps . Right?
No, but you can apply some sort of tricks like top 10 recently add products in your system but bro your db design matters alot
Anonymous
No, but you can apply some sort of tricks like top 10 recently add products in your system but bro your db design matters alot
I will do the most trending on top... Pagination also.. ... I will pay special attention to my db design. :)
Anonymous
I think it's better to use within one app and their templates only should vary and as their format is same for you you can just create a base html.
Yeah.. i am thinking in the same way.. I need One more suggestion- I have about and contact us page also.. i added them in my main app's views and urls as they have only 1 page. Is it a good practice? My navigation bar has these options and it's on all the apps. That's why i thought of doing it.
Anonymous
Is it ok to include them in my main app?
Anonymous
Actually, i worked on flask earlier. But now shifting from flask to Django, new concepts of apps confuses me a little bit.
Aemie
Is it ok to include them in my main app?
Show me your app design (your models.py), for normal html pages you just have to include them in views.py and in url done
Anonymous
Show me your app design (your models.py), for normal html pages you just have to include them in views.py and in url done
I can't send picture here. :( Layout- Website - Website - Homepage - products - templates - static
professor
how can we acces to username , password objs? user['username'] user = authenticate( request, username=form.cleaned_data.get('username'), password=form.cleaned_data.get('password') )
inchidi
when you use ViewSet and you want to create nested url for 2 viewset like this: // projectname/url.py ... path(admin/', include(admin.urls')), path(blog/', include('blog.urls')) ... // blog/urls.py router = routers.DefaultRouter() router.register('', BlogViewSet) router.register(article', ArticleViewSet) # <<< wont work urlpatterns = router.urls the /blog/article/ wont point to Article list and will point to Blog detail instead. how you solve this kind of problem?
R1xt0n
I can't send picture here. :( Layout- Website - Website - Homepage - products - templates - static
Your layout should be something similar to this(roughly) :- templates name-of-app -base.html -home.html -about.html -contact.html -shop.html -single_product.html -check_out.html -cart.html static
John
guys please some help regarding this Django Bootstrap Modal Forms: views.py: def Index(generic.TemplateView): template_name = 'index.html' class SignUpView(BSModalCreateView): form_class = CustomUserCreationForm template_name = 'logpage.html' success_message = 'Success: Sign up succeeded. You can now Log in.' success_url = reverse_lazy('index') urls.py: app_name = 'login' urlpatterns = [ path('', views.Index.as_view(), name='index'), path('signup/', views.SignUpView.as_view(), name='signup'), ] and here's the js script: <script type="text/javascript"> $(function () { // Sign up button $(".signup-btn").modalForm({formURL: "{% url 'signup' %}"}); }); </script> I've been debugging this one for about 2 hours but still i keep on getting this error: NoReverseMatch at / Reverse for 'signup' not found. 'signup' is not a valid view function or pattern name.
John
I think you have to specify the app name before the URL in {% URL 'login:signup' %}
i got this error sir: 'login' is not a registered namespace
Anonymous
Do u registered ur app in setting?
John
yep. i did. .
Anonymous
I am sorry I don't see any errors here may be stop the server and restart again if it can't fix am sorry I don't know
Anonymous
How to upload image to media folder by using template like <input type='file'> ?
Anonymous
How to upload image to media folder by using template like <input type='file'> ?
Image file path stored in Database but its not uploaded to media folder. Plz help me.....
Anonymous
Class SignUpView(BaseModelCreateView)
Have you impor this BaseModelCreateView
Opeyemi
Please explain it i am confused about it. How to intigrate django rest with allauth.
hello jason, were you able to user django-rest-auth without issues? i recently worked with it and although it may be easy, the documentation can isnt the best which makes using initially very hard. did you have any issues with it?
Jason
Thanx bro but i have resolved all the issue. Right now everything working great😇
Dhanasekaran
Hey guys anyone share django rest API tutorials here
Dhanasekaran
Need to learn django can u help me
Anonymous
https://dpaste.de/H3Bt
Anonymous
https://dpaste.de/H3Bt
ajax select option append not working.anyone please check this
Skywalker
Hello
Skywalker
As a first web framework do you recommend django or flask?
Anonymous
Hello
Anonymous
I think django
Anonymous
He's most popular
Anonymous
Короче
Anonymous
Он популярнее
Sultonbek Ikromov
Sultonbek Ikromov
As a first web framework do you recommend django or flask?
Django is the most recomended python framework
Skywalker
I see
Skywalker
Thanks for the advice
Anonymous
Where can i host my Testing Django App, at least 6 websites
Anonymous
Exclude, Heruku.com and Pythonanywhere.com
Anonymous
🙏
Aemie
Netlify, linode(Linux server)
Anonymous
Netlify, linode(Linux server)
Thank you so much Aemie
Sultonbek Ikromov
Guys I need your help. I am creating student information form. And I don’t know how to save it into database
Sultonbek Ikromov
can someone help me
Sultonbek Ikromov
Should I import my form into models.py?
Anonymous
Should I import my form into models.py?
No you import your form into view
Anonymous
And call ModalForm
Sultonbek Ikromov
No you import your form into view
I am importing but I don't know how to store my form items to the database
Anonymous
You use form.save() if there is request
Anonymous
According to name of variable holding ModalForm
Sultonbek Ikromov
You use form.save() if there is request
by the way what should i write in action?
Ansab
Ssl certificate error.... When Iam using python requests from one host to another host..... (https requestl
Ansab
Help me please
Adarsh
can someone someone provide some project that uses django and mysql
Manavver
https://youtu.be/Kf9KB_TZY5U
Manavver
Django CRUD Application - javatpoint https://www.javatpoint.com/django-crud-application
Anonymous
Hi guys, i've one problem in django model when adding one record in every runtime, do you know this trouble?
Anonymous
my django version : 2.1.2
Anonymous
database : sqlite
Jayashankar
Guys, anyone using all-auth with custom user model and templates ? I'm trying to extend all-auth forms and implement signup and login on the same page. Pls PM me if you have any suggestions.
Ram mohan
But i want it to be in a modal. .
I am an Android Developer I want to start earning django
Ram mohan
I am an Android Developer I want to start earning django
Ram mohan
can any one suggest me
Ram mohan
I have installed django and python