Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 16 2015 16:59
    olasitarska commented #362
  • May 16 2015 16:59

    olasitarska on master

    Making post_detail.html more co… Merge pull request #362 from ve… (compare)

  • May 16 2015 16:59
    olasitarska closed #362
  • May 16 2015 16:57
    kvbik commented #362
  • May 16 2015 16:51
    veuu opened #362
  • May 16 2015 15:20
    hjwp commented #361
  • May 16 2015 15:16
    hjwp synchronize #361
  • May 16 2015 15:15
    hjwp synchronize #361
  • May 16 2015 15:12
    bmispelon commented #361
  • May 16 2015 15:08
    hjwp opened #361
  • May 16 2015 14:58
    bmispelon opened #360
  • May 16 2015 13:15
    bmispelon commented #359
  • May 16 2015 13:15

    bmispelon on master

    Provide alternative runserver c… Merge pull request #359 from Al… (compare)

  • May 16 2015 13:15
    bmispelon closed #359
  • May 16 2015 13:14
    keimlink commented #359
  • May 16 2015 13:13
    olasitarska commented #359
  • May 16 2015 13:09
    bmispelon commented #359
  • May 16 2015 11:53
    Almad opened #359
  • May 15 2015 20:00
    bmispelon commented #358
  • May 15 2015 19:59

    bmispelon on master

    fixing broken github link Merge pull request #358 from gs… (compare)

Aakash Deep Srivastava
@IhackDS_gitlab
but need this project using many forms maybe 8 to 10 forms with attachments so how can use it
Nikhil John
@nikhiljohn10
Forms are generated automatically usually in django. Unless you need fine tune with css frameworks
Aakash Deep Srivastava
@IhackDS_gitlab
can u suggest & share any document and any project this type
Nikhil John
@nikhiljohn10
Let me see.
Aakash Deep Srivastava
@IhackDS_gitlab
okay
mostly this project only forms project only home page is shown another page is only forms
Nikhil John
@nikhiljohn10

@IhackDS_gitlab https://github.com/nikhiljohn10/django-auth

Here is a sample project using Django’s native auth methods and postgresql

Its a very minimal example. Only have home, signup, login and logout.
matrixbot
@matrixbot
vancha112 Anyone here who followed the mozilla django tutorial? :) I'm kind of wondering about why they did something the way they did in there..
vancha112 it's an introductory tutorial, and in it they made a couple of models for an application that stores books
vancha112 but they made Genre(a book can have a genre, and a genre can have multple books?) extend the model class, but they made author a field of a book model? Not sure why they didn't just make genre a field instead of a model then?
matrixbot
@matrixbot
nikzjon posted an image: ima_d5a460f.png
nikzjon Are you talking about this?
nikzjon From tutorial: The connecting line between the boxes shows that Book and a Genre are related. The numbers close to the Genre model show that a book must have one or more Genres (as many as you like), while the numbers on the other end of the line next to the Book model show that a Genre can have zero or many associated books.
matrixbot
@matrixbot
vancha112 nikzjon thank you very much! I think this explanation makes sense, but I guess you could say the same for author right? 1 or more authors could have written one or more books (there are lot's of books with multiple authors/co-authors).
turinng turenne
@TurinngT_twitter
hello
i have a problem in django
i have two pages, one contain a dynamique data like dictionnary, i would like to send this data to another template
my architect is like this: base.html and two pages extends articles and authors ?
please help ????
matrixbot
@matrixbot
nikzjon @vancha112 if you read tutorial 3, defining the locallibrary models, then you will see that you are correct. It is mentioned that it is not considered in the tutorial intentionally. Everything you need to know is written in the tutorial.
matrixbot
@matrixbot
vancha112 @nikzjon:matrix.org ah, I ended up there today ^^ thanks!
Nikhil John
@nikhiljohn10

@TurinngT_twitter what do you mean by send data to another template??

You need to understand that template is not controlling data. Views.py control everything you see in browser. So try to implement a generic function/class inside view and use it inside view definitions to share dynamic data.

matrixbot
@matrixbot
nikzjon @vancha112 awesome 👍🏼
NElzar
@NElzar
Guys! Where are girls? :D
matrixbot
@matrixbot
ice_bear69 ?
debasisrout333
@debasisrout333
Hey guys, I am strictly following Djangogirls instructions for starting my first project. But I am stuck at "Git 2.28.0 64 bit for windows" installation. I am not able to find "Nano" editor at "Which editor would you like Git to use" step as instructed by DjangoGirls. Please help.
Nikhil John
@nikhiljohn10

Since its windows, I recommend Github Desktop app instead. So no worry about nano or anything. Its great for beginners. https://desktop.github.com/

That way you dont need to use command line to work with git. Github Desktop is great tool in windows and macos, but not in linux.

But its always great to learn git cli commands in long run that you might need it for big projects.
lornajohnson
@lornajohnson

Hi there, I am doing the tutorial from home and am at Starting the web server. I appear to have successfully executed python manage.py migrate but when I query the browser (Chrome) with http://127.0.0.1:8000/ I get the message This site can’t be reached127.0.0.1 refused to connect.
Try:

Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED. Any suggestions? Thank you.

lornajohnson
@lornajohnson
So sorry - I have sorted the problem out myself!
Alexandra Gatti
@alexandragatti01_gitlab
hi there, if i build a website from django, is this website available for me to continue building on with html, ccs and others to find and look at what i build on the front end? - most websites cost money, but if i build myself one (cool) i would avoid this and learn a new skill right?
Alexandra Gatti
@alexandragatti01_gitlab
curious to know what the possibilities are and the limits
Nikhil John
@nikhiljohn10
You can use websites like heroku, pythonanywhere, amazon aws, google cloud engine, openshift, etc. that can host your django website with limited features for free
Heroku and pythonanywhere are the least complicated ones.
Guide to pythonanywhere is inside django girls tutorial. For heroku, try this one https://devcenter.heroku.com/articles/getting-started-with-python
Alexandra Gatti
@alexandragatti01_gitlab
interesting, so a basic designed website would be able to deploy for free on heroku for example
thank you
Nikhil John
@nikhiljohn10
One more option is vercel.com if you are using Django Rest Framework with React JS, which is the best production option I suggest if you are taking it as career path.
You are welcome
sonihim
@sonihim
pythonanywhere.api.base.AuthenticationError: Authentication error 401 calling API: {"detail":"Invalid token."}
Can someone please help me to resolve above error. ?
@nikhiljohn10 Please can you help
Nikhil John
@nikhiljohn10
It looks like your dont have a valid token
Have you generated api token in pythonanywhere account?
Nikhil John
@nikhiljohn10
@sonihim did you properly followed tutorial?
sonihim
@sonihim
ok. let me try again
Nikhil John
@nikhiljohn10
👍🏼
sonihim
@sonihim

i tried and but now i am getting below error:

pythonanywhere.exceptions.SanityException: You already have a webapp for himanshupythonanywhere.pythonanywhere.com.
Use the --nuke option if you want to replace it.
checked solution to resolve but not working

Nikhil John
@nikhiljohn10
You need to delete previous webapp from the dashboard of pythonanywhere
Also it should work if you put “—nuke” option when you configure it