+ Post New Thread
Results 1 to 2 of 2

Thread: Django Framework

  1. #1
    Junior Member Balaji's Avatar
    Join Date
    Apr 2017
    Posts
    5
    Post Thanks / Like

    Django Framework



    I have learnt Python language and I am started learning Django. I have a doubt how to add images in django. Please help me to try this

  2. #2
    Junior Member Yokesh's Avatar
    Join Date
    Apr 2017
    Posts
    7
    Post Thanks / Like


    Is this useful / helpfull? Yes | No
    Actually, you cannot add a CSS file directly like an HTML file. Here you have to use it as a static file. Create a static folder in your main app and then in the static folder, you have to create a app inside that you have to include your CSS javascript files. In your view file, you have to add as {% static %} and run collect static in your terminal to load your static files.
    Like that, you can upload the images in Django

+ Post New Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
 Protected by : ZB BLOCK  &  StopForumSpam