Noel Simela
05/27/2021, 5:04 AMZM
10/31/2021, 12:28 PMPeter Simon
06/20/2022, 10:38 PMPeter Simon
06/20/2022, 10:39 PMnpm run dev
terminal output:
> dev
> concurrently --raw "./manage.py runserver" "npm run watch" "npm run dev:browser-sync"
sh: concurrently: command not found
Peter Simon
06/20/2022, 10:39 PMstc
06/21/2022, 9:10 AMnpm install
first?Peter Simon
06/21/2022, 4:35 PMstc
06/21/2022, 6:09 PMconcurrently
installedstc
06/21/2022, 6:09 PMstc
06/21/2022, 6:09 PMstc
06/21/2022, 6:10 PMstc
06/21/2022, 6:10 PMstc
06/21/2022, 6:12 PMstc
06/21/2022, 6:12 PMstc
06/21/2022, 6:13 PMPeter Simon
06/21/2022, 10:39 PMstc
06/22/2022, 12:50 AMstc
06/22/2022, 4:50 PMRichard Delfs
06/24/2022, 10:16 PMwhich
failed Error: not found: python2
npm ERR! gyp verb which
failed at getNotFoundError ([project path]\node_modules\which\which.js1312)
npm ERR! gyp verb which
failed at F ([project path]\node_modules\which\which.js6819)
npm ERR! gyp verb which
failed at E ([project path]\node_modules\which\which.js8029)
npm ERR! gyp verb which
failed at [project path]\node_modules\which\which.js8916
npm ERR! gyp verb which
failed at [project path]\node_modules\isexe\index.js425
npm ERR! gyp verb which
failed at [project path]\node_modules\isexe\windows.js365
npm ERR! gyp verb which
failed at FSReqCallback.oncomplete (nodefs198:21)
npm ERR! gyp verb which
failed python2 Error: not found: python2
npm ERR! gyp verb which
failed at getNotFoundError ([project path]\node_modules\which\which.js1312)
npm ERR! gyp verb which
failed at F ([project path]\node_modules\which\which.js6819)
npm ERR! gyp verb which
failed at E ([project path]\node_modules\which\which.js8029)
npm ERR! gyp verb which
failed at [project path]\node_modules\which\which.js8916
npm ERR! gyp verb which
failed at [project path]\node_modules\isexe\index.js425
npm ERR! gyp verb which
failed at [project path]\node_modules\isexe\windows.js365
npm ERR! gyp verb which
failed at FSReqCallback.oncomplete (nodefs198:21) {
npm ERR! gyp verb which
failed code: 'ENOENT'
npm ERR! gyp verb which
failed }
npm ERR! gyp verb check python checking for Python executable "python" in the PATH
npm ERR! gyp verb which
succeeded python [env]\python.EXE
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Command failed: [env]\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
npm ERR! gyp ERR! stack File "<string>", line 1
npm ERR! gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
npm ERR! gyp ERR! stack ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
npm ERR! gyp ERR! stack SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
npm ERR! gyp ERR! stack
npm ERR! gyp ERR! stack at ChildProcess.exithandler (nodechild process399:12)
npm ERR! gyp ERR! stack at ChildProcess.emit (nodeevents526:28)
npm ERR! gyp ERR! stack at maybeClose (nodeinternal/child process1092:16)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (nodeinternal/child process302:5)
npm ERR! gyp ERR! command "[project path]\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
npm ERR! gyp ERR! cwd [project path]\node_modules\node-sass
npm ERR! gyp ERR! node -v v16.14.2
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not okRichard Delfs
06/24/2022, 10:17 PMMike Oliver
09/04/2022, 3:43 AMMike Oliver
09/04/2022, 3:44 AMMike Oliver
09/04/2022, 3:48 AMNitin Nayar
09/04/2022, 7:50 AMNitin Nayar
09/04/2022, 7:50 AM(te-cockpit-venv) ubuntu:~/environment/thousandeyes_project $ pip install pixar-cli
ERROR: Could not find a version that satisfies the requirement pixar-cli (from versions: none)
ERROR: No matching distribution found for pixar-cli
(te-cockpit-venv) ubuntu:~/environment/thousandeyes_project $ which puthon
(te-cockpit-venv) ubuntu:~/environment/thousandeyes_project $ which python
/home/ubuntu/environment/thousandeyes_project/te-cockpit-venv/bin/python
(te-cockpit-venv) ubuntu:~/environment/thousandeyes_project $ python --version
Python 3.7.5
(te-cockpit-venv) ubuntu:~/environment/thousandeyes_project $ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.6 LTS
Release: 18.04
Codename: bionic
(te-cockpit-venv) ubuntu:~/environment/thousandeyes_project $
user
10/20/2022, 3:59 AM'str' object has no attribute '_meta'
my html
{% load pinax_comments_tags %}
{% comment_target listing as post_url %}
{% comment_form listing as comment_form %}
<form class="form" method="post" action="">
{% csrf_token %}
{{ comment_form }}
<button class="btn btn-primary">Post Comment</button>
</form>
my view
def get_listing(request, id):
listing = Listing.objects.get(pk=id)
print(listing)
chat_room, created = Room.objects.get_or_create(name=id)
return render(request, 'listings/room.html', {
'room': chat_room,
'listing': listing
})
user
10/20/2022, 4:34 AMhatim makki
11/07/2022, 1:34 PMuser
11/10/2022, 8:09 AM$ pip install pinax-ratings
Add pinax.ratings
to your INSTALLED_APPS
setting:
INSTALLED_APPS = [
# other apps
"pinax.ratings",
]
But the following is difficult for me:
Add pinax.ratings.urls
to your project urlpatterns:
urlpatterns = [
# other urls
url(r"^ratings/", include("pinax.ratings.urls", namespace="pinax_ratings")),
]
In which urlpatterns exactly?
Usage
Integrating pinax-ratings
into your project is just a matter of using a couple of template tags and wiring up a bit of javascript. The rating form is intended to function via AJAX and as such returns JSON.
First add load the template tags for `pinax-ratings`:
{% load pinax_ratings_tags %}
Where exactly to add?
etc...
Thank you in advance!user
12/21/2022, 9:19 PMpinax.Customer
model, with the user field blank. I’ve manually added the user field through the database to the pinax_stripe_customer
table, but the user model is not being correctly associated still. Any ideas on how to get the user object synced to the correct customer object? Thanks!