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)

Raquel Theodoro A. da Silva
@raquelsilva
@mfrasca no, I don't. What I did was to change to MySQL database. It is not the first time I have problems with the sqlite. It is not a good database server anyway. So, I think that I've got to solve the problem. Thank you for asking.
Mario Frasca
@mfrasca
@raquelsilva about how to change password, try to do that from the shell, as in the answer https://stackoverflow.com/a/6358452/78912.
@raquelsilva about accessing your database, I think it is a wise decision, to use a real database server. I would go for PostgreSQL, it's possibly a bit more complex, but absolutely worth the effort. in particular if you ever plan to do geographic data.
Mario Frasca
@mfrasca
@alexandragatti01_gitlab … you are on Windows, so I guess you're excused for not recognizing the ~$. they are both unix stuff and they are not stuff we are supposed to type, it's part of the prompt: ~ is a shortcut to indicate your home directory, think of it as your C:\Users\Name; the $ is there to signify that you are a normal user and not root (the unix admin), again think of it as equivalent to your windows prompt >.
chidi147
@chidi147
i have followed djangogirls tutorial till django admin but when i run python manage.py runserver and type http://127.0.0.1:8000/admin/. in my browser it came up with error message, that i should contact my administrator, what do i do?
chidi147
@chidi147
when i checked the consol it said: the included URLconfig 'mysite.urls' does not appear to have any pattern in it. how do i go about it?
Raphael Das Gupta
@das-g
Check whether everything in file urls.py in directory mysite is correct.
krissyf
@krissyf
hello! I can't get this page to load? https://tutorial.djangogirls.org/en/django_templates/
hmm I found a cached version, so hopefully that will work for now! the other tutorial pages all work fine.
amanawasthi96
@amanawasthi96
Hello everyone! Is every data type or class that we define in our django project is a django model?
chidi147
@chidi147
@das-g thanks, i will just do that and get back to you
Mario Frasca
@mfrasca
@amanawasthi96 hi, why do you ask? … a "django model" is a class (data type) that inherits from django.db.models.Model. Inheriting from a base class makes sure that your class includes definitions and behaviours from the base class. In the case of django.db.models.Model, it ensures coordination with the whole django environment, in particular with your database connection.
Check the inheritance of your classes, and you will see whether or not it inherits from django.db.models.Model.
howardmarine
@howardmarine
Hi , I followed the tutorial and added posts but I still can't see them
Shoji
@Shukuri_gitlab
Hello everyone. I have accessed to this chat at first time. And I'm a beginner in Django, of course. For now, I'm trying "Starting our Git repository" in "Deploy" ( in Django Girls Tutorial) . I have a trouble , when I executed command-line below,
$ git init
Initialized empty Git repository in ~/djangogirls/.git/
$ git config --global user.name "Your Name"
$ git config --global user.email you@example.com
Shoji
@Shukuri_gitlab
Hello everyone. I have accessed to this chat at first time. And I'm a beginner in Django, of course. For now, I'm trying "Starting our Git repository" in "Deploy" ( in Django Girls Tutorial) . I have a trouble , when I executed command-line below,
$ git init
Initialized empty Git repository in ~/djangogirls/.git/
$ git config --global user.name "Your Name"
$ git config --global user.email you@example.com I have inputed wrong e-mail address. therefore I have initialized Git via "git init" . Then I can't get results as the tutorial. I'm wondering if you could tell me how to resolve this trouble.
Ghost
@ghost~5d5904e3d73408ce4fc8ab6c
when i give command git add --all . i get an error
saying permission denied
please help me someone
Mario Frasca
@mfrasca
@Shukuri_gitlab, what happens if you replace "Your Name" with your own name and you@example.com with your own email address?
howardmarine
@howardmarine
Shoji , you should recreate global user. Use: it config --global credential.helper manager
Govind Rathi
@Kingpin23
(myenv) C:\Users\admin\Documents\djnagogirls>python -m pip install -r requirements.txt
Collecting Djnago~=2.0.6 (from -r requirements.txt (line 1))
ERROR: Could not find a version that satisfies the requirement Djnago~=2.0.6 (from -r requirements.txt (line 1)) (from versions: none)
ERROR: No matching distribution found for Djnago~=2.0.6 (from -r requirements.txt (line 1))
I am getting this error while installing Django in my Virtual Env
Can someone help me out
howardmarine
@howardmarine
ok so we ignored /static folder. this is why I am getting the error on the line with css file reference.
howardmarine
@howardmarine
why are we ignoring the static folder , can someone explain?
Shoji
@Shukuri_gitlab
@mfrasca Hello, Mr.Frasca. Thank you for your response to my trouble. I'm sorry for my poor ability of English. I'm from Yokohama, Japan. I have accessed to this chat at second time. And I'm a beginner in Django, as you know. I'm sorry that I have sent almost same message, For now, I'm trying "Starting our Git repository" in "Deploy" ( in Django Girls Tutorial) . I have a trouble , when I executed command-line below,
$ git init
Initialized empty Git repository in ~/djangogirls/.git/
$ git config --global user.name "My Own User Name"
$ git config --global user.email "Wrong email address" Finally I have inputed wrong e-mail address. So that , I have initialized Git via typing "git init" . But, Then I can't get results as the tutorial. I'm wondering if you could tell me how to resolve this trouble.
Shoji
@Shukuri_gitlab
@howardmarine , Thank you for your response to my trouble. I'm sorry for my poor ability of English. I'm from Yokohama , Japan. I'm wondering if you could tell me how to do into detail.
Y Praveen
@praveensms
Anybody know how to do API testing
Raphael Das Gupta
@das-g
What do you mean by API testing?
Aslam786-lab
@Aslam786-lab
def publish(self):
self.published_date = timezone.now()
self.save()
def __str__(self):
    return self.title
can someone explain the above code
why we are defining above two methods
Raphael Das Gupta
@das-g
publish is for marking a blog post as published (and storing the date and time when that happened). You'll be using (calling) that later on in the tutorial.
__str__ will by called by Python, when it needs a string representation of the object (here, of a blog post). This is e.g. the case, when a blog post object is the result of an expression you run in the interactive python console.
MahendraKotapati
@MahendraKotapati
help please in DJANGO ADMIN tutorial after creating super user i login with that iam unable to find BLOG
pallavikumari1
@pallavikumari1
how to create a model at runtime in django
sponkyy1
@sponkyy1
I installed this: pip3.6 install --user pythonanywhere, Issues:Successfully installed pythonanywhere-0.8.1. Then try this command: pa_autoconfigure_django.py ......, and this command does not work: bash: pa_autoconfigure_django.py: command not found, how to get out of this situation???
bassdiallo
@bassdiallo
how can i chnage the default code editor ? i'm using with powershell and it use bloc-note.
AnonZebra
@AnonZebra
bassdiallo: I don't know what you mean exactly. Do you mean what program is used if you double-click a .py file from your file browser? If so, here's an article how to do that on a Mac: https://www.techjunkie.com/default-applications-macos/ (you can google "change default program Windows/Linux" if you have a different operating system than Mac OSX) Also see the tutorial section on code editors: https://tutorial.djangogirls.org/en/code_editor/
AnonZebra
@AnonZebra
I'm having trouble with Django and using the Lobster font from Google, as described here: https://tutorial.djangogirls.org/en/css/ If I create a HTML document outside of the Django project with only this code and open it with Firefox I can see the font fine: https://dpaste.de/QRaT But when I put the very same code in <projectname>/blog/templates/blog/post_list.html and run my server the Lobster font isn't used, instead the fallback font "cursive" is used. Does anyone know what might be wrong?
AnonZebra
@AnonZebra
It turned out that for some reason, Firefox interpreted the HTML differently depending on whether it was accessed through a file or by my local server URL (http://127.0.0.1:8000/). With Safari it works fine rolleyes
sponkyy1
@sponkyy1
I do not connect to PythonAnywhere: I installed this: pip3.6 install --user pythonanywhere, Issues:Successfully installed pythonanywhere-0.8.1. Then try this command: pa_autoconfigure_django.py ......, and this command does not work: bash: pa_autoconfigure_django.py: command not found, how to get out of this situation???
AnonZebra
@AnonZebra
sponkyy: Did you already check the section of the tutorial that's specifically for running "pa_autoconfigure_django.py"? https://tutorial.djangogirls.org/en/deploy/#debugging-tips
ykamath
@ykamath
In the deploy section it says : "Once you have a few posts created, you can go back to your local setup (not PythonAnywhere). From here you should work on your local setup to make changes. This is a common workflow in web development – make changes locally, push those changes to GitHub, and pull your changes down to your live Web server."
Is it telling us that local changes were made and we have to push those into our github repository? How could we do this? (from local to github)
AnonZebra
@AnonZebra
ykamath: If you've reached that section of the tutorial, you should already have transferred your files from your local workspace to github https://tutorial.djangogirls.org/en/deploy/#pushing-your-code-to-github To update the github repo with new changes, you just need to repeat these commands: "git add --a" "git commit -m 'description of changes' " "git push". (as you continue the tutorial, these instructions will be repeated a couple of times anyway, so you can just keep going :) )
Krishna sanjay
@cris7M
HI
I am new to django
trying to build a logistic application which will help to take orders and track the order like swiggy or uber Eats
How should I start with django..
AnonZebra
@AnonZebra
Krishna: um. how about https://tutorial.djangogirls.org/ ?