Re: Multiple foreign Field

2019-10-12 Thread Salim Kachemela
Is it possible for you to attach a screenshot of your models.py file if you don't mind? On Saturday, October 12, 2019 at 5:20:30 PM UTC+3, Kivai Muinde wrote: > > I have two model classes, *school* and *profile*. > The school model contains a field called school_level which has several >

Re: Multiple foreign Field

2019-10-12 Thread Rohit Kurangi
1) apply the python manage. py migrate --fake 2) python manage. py makemigrations and after apply the migrate On Sat, 12 Oct, 2019, 7:50 PM Kivai Muinde, wrote: > I have two model classes, *school* and *profile*. > The school model contains a field called school_level which has several >

Re: How to modify data after receiving from request.data

2019-10-12 Thread laxmikanta nayak
Due to nested object its giving error when passed to serializer , but i will try this. On Friday, October 11, 2019 at 7:29:26 PM UTC+5:30, gaurav jain wrote: > > You can not modify the request.data object. > You can save it in a different variable and use that > Regards > Gaurav Jain >

Re: page redirecting only home page

2019-10-12 Thread Mohammad yunus
In URL('empty') Convert it into URL(r^'$',your view) On Sat, 12 Oct 2019, 8:06 pm lemme smash, wrote: > why you have type="button" on anchor?) > > On Saturday, October 12, 2019 at 7:07:48 AM UTC+3, narendra thapa wrote: >> >> i have two template load_page.html and ask_questions.html while i am

Re: page redirecting only home page

2019-10-12 Thread lemme smash
why you have type="button" on anchor?) On Saturday, October 12, 2019 at 7:07:48 AM UTC+3, narendra thapa wrote: > > i have two template load_page.html and ask_questions.html while i am > linking a ask_questions.html through load_page.html via a anchor tag i am > not getting ask_questions.html

Re: Micro Service Architecture

2019-10-12 Thread lemme smash
go ^^) On Friday, October 11, 2019 at 8:39:33 PM UTC+3, Uzama Zaid Mohammed Jaward wrote: > > Hi all > > What are the tech stack is good for micro service architecture in Django > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Multiple foreign Field

2019-10-12 Thread Kivai Muinde
I have two model classes, *school* and *profile*. The school model contains a field called school_level which has several choices( primary, secondary , college,university). The profile models has four differnt fields (school_primary, school_secondary, school_college,school_university) each

Re: Micro Service Architecture

2019-10-12 Thread vineet daniel
To fully implement microservices you need django apis behind a proxy or load balancer or another api which can route request from nginx or kong to your backend microservices. Each microservice can be in docker container and all of it running on kubernetes. Frontend can be either angular, vue or

Re: Micro Service Architecture

2019-10-12 Thread Aldian Fazrihady
Microservice embraces unix philosophy: "do one thing and do it well". So you should define Django app that follows that principle. You then wrap that Django app to be accessed behind Nginx or Apache that exposes port 80 to be accessed by other micorservices/clients. That nginx+django bundle can be

Re: Managing links on static files from a static file

2019-10-12 Thread Михаил Брунман
I've found the solution (if anyone ever will be in need). There are 2 situations: 1. Development. For development this problem can be solved using static function. Import it in your app's urls.py: from django.conf.urls.static import static Then use it there after the urlpatterns list: if

Re: Micro Service Architecture

2019-10-12 Thread Motaz Hejaze
This is a good question , i dont know why no body answered it !! On Fri, 11 Oct 2019, 7:38 pm Uzama Zaid Mohammed Jaward, < uzamajaw...@gmail.com> wrote: > Hi all > > What are the tech stack is good for micro service architecture in Django > > -- > You received this message because you are

Re: Keyring with Django

2019-10-12 Thread Mike Dewhirst
On 12/10/2019 6:05 pm, Tumbelo wrote: Hi, I need to store some third party server passwords in Django, in views.py to be more specific. Those are used for Paramiko SFTP (machine-to-machine communication) and it's not possible to use keys instead of passwords. For sure I don't like to write

Re: Why and when I should override the default AdminSite

2019-10-12 Thread Derek
Not sure what you mean by "overwrite" - there are lots of ways to extend or customise Django admin, not the least of which is retheming it e.g. Django Suite or Grappelli. On Wednesday, 9 October 2019 10:11:27 UTC+2, Jérôme Le Carrou wrote: > > I am newbie in DJango > I've started to read

Re: Why and when I should override the default AdminSite

2019-10-12 Thread Derek
Hi I have also been working with Django for many, many years. All of our apps have been based around the many features/options already built-in to the admin and it works perfectly "as is". There is really a lot you can do with it if your users are accustomed to working with more traditional

Re: syntax error: export DJANGO_DEBUG=False

2019-10-12 Thread fishbite
Hi there, Thank you for your answer, which is correct! Much appreciated. On Saturday, October 12, 2019 at 5:16:43 AM UTC+1, WD Wang wrote: > > hi, > > export DJANGO_DEBUG=False > This is a shell command, you shouldn't add this to your settings.py. > > On Fri, Oct 11, 2019 at 9:51 PM fishbite >

Re: MDN Locallibrary project - syntax error on 'export DJANGO_DEBUG=False'

2019-10-12 Thread fishbite
Thank you Daniel, that's a great help. I sat looking at the tutorial thinking to myself that it didn't explicitly say that line should be put into the settings file, but on the other hand, it didn't say that it shohuld be entered at the prompt either! Thanks again, it is much appreciated. On

Keyring with Django

2019-10-12 Thread Tumbelo
Hi, I need to store some third party server passwords in Django, in views.py to be more specific. Those are used for Paramiko SFTP (machine-to-machine communication) and it's not possible to use keys instead of passwords. For sure I don't like to write those passwords directly to source code.

Re: CSS not working

2019-10-12 Thread yasar arafath Kajamydeen
*@ Jani *- Tried the same no reaction in page. Please find the att (test.xlsx). *Regards,* *Yasar Arafath K* On Saturday, October 12, 2019 at 6:39:30 AM UTC+8, Jani Tiainen wrote: > > Hi. > > As you see Django indeed found your static file. > > Next step is to open up developer tools in

Re: CSS not working

2019-10-12 Thread yasar arafath Kajamydeen
* Hi **yashwanth** - The Suggested one tried already in earlier, But its not working .* On Friday, October 11, 2019 at 10:28:55 PM UTC+8, yashwanth .k wrote: > > Hello, > You must make a separate directory in static folder. > in the html file try using { load staticfiles } not {load static} >