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)

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
lornajohnson
@lornajohnson
Hi there, Lorna again. I have got right to the "You are now live!" section where it says Click through to the PythonAnywhere "Web" page to get a link to it. I am on the page but don't see where to generate the link.
Nikhil John
@nikhiljohn10
If your username is lorna, then link is http://lorna.pythonanywhere.com
lornajohnson
@lornajohnson
Thanks Nikhil John. I thought it was more than that. I have done that successfully and signed in to the admin part OK.
Nikhil John
@nikhiljohn10
🎉👍🏼 Good job :)
YoshiNa1
@YoshiNa1
Hello everyone! Please, help me. I just started learning Django and I have ModuleNotFoundError
I added my app in settings.py
Nikhil John
@nikhiljohn10
Which module?
Did you install all modules?
If its django module error, try pip install django inside virtual environment on terminal
YoshiNa1
@YoshiNa1
@nikhiljohn10 no, problem with app module
Nikhil John
@nikhiljohn10
If you can share the complete error message, i can help you better
LobeD
@LobeD
Hi There, I am trying to commit and push code to github but I get this error ! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/LobeD/my-first-blog.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
is there something I am missing (sorry about the way that error pasted in!)
Nikhil John
@nikhiljohn10
Try the following. it resets the local git repo and connect to remote again and push all files fresh.
rm -rf .git
git init
git remote add https://github.com/LobeD/my-first-blog.git
git remote -v
git pull
git add .
git commit -m "First commit"
git push -u origin main
LobeD
@LobeD
thank you!
Nikhil John
@nikhiljohn10
Did it work?
@LobeD ?
LobeD
@LobeD
Hi there it almost worked but now have this error...
error: src refspec main does not match any
error: failed to push some refs to 'origin'
it came up with these options when I entered the 3rd line of code..
usage: git remote add [<options>] <name> <url>
-f, --fetch           fetch the remote branches
--tags                import all tags and associated objects when fetching
                      or do not fetch any tag at all (--no-tags)
-t, --track <branch>  branch(es) to track
-m, --master <branch>
                      master branch
--mirror[=(push|fetch)]
                      set up remote as a mirror to push to or fetch from
LobeD
@LobeD
if I do Git status it says....
On branch master
nothing to commit, working tree clean
Nikhil John
@nikhiljohn10

Sorry my mistake

git remote add origin https://github.com/LobeD/my-first-blog.git

Forgot to add ‘origin’ in that command
wredox
@wredox
Hi, I want to ask for help, how can I solve this problem !? title
Nikhil John
@nikhiljohn10
Its . venv/bin/activate. There is a dot and space before that path
@wredox
wredox
@wredox
I'm sorry, but I don't understand. What and where should I fix then?
Nikhil John
@nikhiljohn10
@wredox can you show the urls.py file content next to settings.py. I think there is some misconfiguration inside it.
Nikhil John
@nikhiljohn10
Also if you install a new virtual environment, you need to install the requirements.txt using pip install -r requirements.txt if it exists. Else try pip install django
koba_cho
@LFOHP_twitter
Teach me some questions. What is 'blog.apps.BlogConfig' ? Why BlogConfig?
Nikhil John
@nikhiljohn10

@LFOHP_twitter read from this link https://docs.djangoproject.com/en/3.0/ref/applications/

Fact is you can use just ‘blog’ as well, which also works. BlogConfig is used for more customised apps. But its a general format used.

Nikhil John
@nikhiljohn10
Turns out, adding BlogConfig is part of old version on django. In new versions, just adding ‘blog’ is enough.
koba_cho
@LFOHP_twitter
Thank you! I understand 'blog.apps.blog` .