Follow this link. This is lesson 1.
https://m.youtube.com/watch?v=FNQxxpM1yOs
I think there are about 11 videos altogether. So you can search further for
remaining video lessons.
It will give you a basic overview on how to create a simple web application
with django.
You can later go deep if y
Hello
I need to test a service that uses Webhooks - HTTP callbacks.
I want to use localtunnel to open my localhost to the internet. However i dont
know how to integrate it with my django project. I also dont know how to set up
the url patterns if i am to use localtunnel.
Any help please...!!!
Okkk. From your url pattern, What you should do is http://127.0.0.1:8000/hello.
Because your url pattern says r'^hello/$'
But what u are doing presently is
http://127.0.0.1:8000/
In this case your url pattern is supposed to be r'^$' and not r'^hello/$'
Yingi Kem
> On 29 Oct 2017, at 10:51 P
ies
>
>
>
>
>> On Mon, Oct 30, 2017 at 3:09 AM, yingi keme wrote:
>> Hello
>>
>> I need to test a service that uses Webhooks - HTTP callbacks.
>>
>> I want to use localtunnel to open my localhost to the internet. However i
>> dont know ho
I have a callback function(webhook) implemented below
def call_back(request, param):
# Testnet
method='GET'
x_signature = request.headers.get('X-Signature')
print(siri)
request_uri_encoded = str(request).splitlines()[0].split()[1]
request_uri = urllib.parse.unquote
:46 PM, Dylan Reinhold wrote:
>
> Do you have a url entry above that is also matching it?
>
>> On Sat, Nov 11, 2017 at 3:52 AM, yingi keme wrote:
>> I have a callback function(webhook) implemented below
>>
>> def call_back(request, param):
>>
I have a function that i want to be accessed only if the user is a
supersuser.
I have tried this
from django.contrib.admin.views.decorators import staff_member_required
@staff_member_required
def my_view(request):
template_name = 'Core\CustomizedAdmin.html'
return render(request, templa
in your system.
>
> On 19 Nov 2017, at 15.22, yingi keme >
> wrote:
>
> I have a function that i want to be accessed only if the user is a
> supersuser.
>
> I have tried this
>
> from django.contrib.admin.views.decorators import staff_member_required
Try python manage.py createsuperuser. Follow the instructions, then try login
in again
Yingi Kem
> On 20 Nov 2017, at 1:51 PM, Christian Ahidjo wrote:
>
> Hi,
> I started working on an existing django project and for a reason I ignore if
> I try to log in /admin the page does nothing. There i
You can use channels. Check out channels in django. It is a websocket library
and it will be useful for what you are looking for
Yingi Kem
> On 25 Nov 2017, at 4:55 PM, Unnati C wrote:
>
> Web page is about displaying data from database, Till now webpage is
> displaying data, but if I want to
Intead of rendering it with the as_p. You can render them individually.
ie
{{form.name}}
{{form.username}}
In the forms.py, in each of the fields, add widget attributes.
def MyForm(forms.ModelForm):
name = forms.CharField(label='name',
widgets=forms.TextInput(attrs={'placeholder':'Name
Yingi Kem
> On 1 Dec 2017, at 3:25 PM, yingi keme wrote:
>
> Intead of rendering it with the as_p. You can render them individually.
> ie
>
> {{form.name}}
> {{form.username}}
>
> In the forms.py, in each of the fields, add widget attributes.
>
> def My
Hey, i made a mistake in the previous reply. Its widget and not widgets. The
correct code is:
Intead of rendering it with the as_p. You can render them individually.
ie
{{form.name}}
{{form.username}}
In the forms.py, in each of the fields, add widget attributes.
def MyForm(forms.ModelForm):
Your url is not pointing to the url pattern specified
Try this:
http://localhost:8000/polls
What u are doing is http://localhost:8000/admin/polls.
Then i noticed you deleted the admin url pattern in you urls.py file. You will
definitely need to use the admin page pretty soon.
Yingi Kem
> On
I am using the django generic UpdateView
class UserUpdate(UpdateView):
model = User
fields = ['first_name', 'last_name', 'email', 'username']
template_name = 'Core\MyUpdate.htm'
And my url pattern is this:
url(r'^UpdateMe/(?P\d+)/$', UserUpdate.as_view(), name='Update')
However, thi
7;^/Core/UpdateMe/(?P\\d+)/$'
>
>
> суббота, 16 декабря 2017 г., 12:22:49 UTC+3 пользователь yingi keme написал:
>>
>> I am using the django generic UpdateView
>>
>> class UserUpdate(UpdateView):
>> model = User
>> fields = ['fir
> That will not work and isn't recommended. Everything within {% %} is python
> code already, so you don't need to interpolate again. I don't even think that
> will work.
>
> Unfortunately I don't have any suggestions to get it working either...
>
> Regards,
>
&
You nailed it james. It worked for me. The capitalization matters.
Thanks James..!!!
Yingi Kem
> On 17 Dec 2017, at 12:14 PM, James Schneider wrote:
>
>
>
>
> Update
>
> It gives the No Reverse Error. I dont seem to understand why
>
> Instead of User.id, try user.id, capitalization matter
I am aware that its a bad idea to put your secret keys and other API keys in
your settinggs.py file.
In a production environment like for instance hosting your site in
digitalocean, where will you have to store your secret keys. And how will you
load it in your settings.py file.?
I am a newbi
Hi jason,
Ok so do you suggest moving secret keys to an environment variable because i am
seeing tutorials on that, but its typically on the development stage. In
production level, how will you do that..?
Yingi Kem
> On 10 Jan 2018, at 3:01 PM, Jason wrote:
>
> Etienne, I think this is more
Hi Etienne,
I will thoroughly investigate which is the best approach.
Yingi Kem
> On 10 Jan 2018, at 8:35 PM, Etienne Robillard wrote:
>
> Hi Jason,
>
> I understand your views. But I have trust in Digital Ocean and Github that
> they will not mess with "private" stuff unless they want to e
I tried deploying my app to pythonanywhere hosting service and i am getting
TemplateDoesNotExist Error
Everything seems to work out well with my development server. But its not
working fine when hosting
Anyhelp please!!
Here is my View
def Home(request):
template = 'Home\First.html'
r
Thanks Kasper. It was the backslash.
Thanks for saving me...
Yingi Kem
> On 13 Jan 2018, at 2:52 PM, Kasper Laudrup wrote:
>
> Hi Yingi,
>
>> On 2018-01-13 14:46, yingi keme wrote:
>> I tried deploying my app to pythonanywhere hosting service and i am getting
>&
t
> casing which may lead difficult to spot problems.
>
> 13.1.2018 22.58 "yingi keme" kirjoitti:
>> Thanks Kasper. It was the backslash.
>>
>> Thanks for saving me...
>>
>> Yingi Kem
>>
>> > On 13 Jan 2018, at 2:52 PM, Kasper La
Yes it does post
Yingi Kem
> On 14 Jan 2018, at 10:07 PM, Rich Shepard wrote:
>
> I've not received messages from this mail list since last summer. I now
> have a need to communicate with others and learned that I'm still subscribed
> so I want to learn if this message posts and is sent back t
SQLite is fine when developing. But on production, it depends on the server you
are going to host your site.
Some hosting service like pythonanywhere.com already provides you with
POSTgresql. All you need to do is install the database adapter(psycopg2) in
your virtual environment.
Yingi Kem
>
Its a pip install.
Yingi Kem
> On 25 Jan 2018, at 8:50 PM, bootcamprag wrote:
>
> Will that be a Pip install or from some other source? Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop
Follow this quick video lessons on using django
https://m.youtube.com/watch?v=FNQxxpM1yOs
But you have to cd into the directory/environment where u have your python
installed and type in the command 'pip install django'
You can follow the youtube video link above for lessons to understand the
Hello,
my site is hosted on pythonanywhere.com. As per this
tutorial https://help.pythonanywhere.com/pages/UsingANewDomainForExistingWebApp
I have changed the previous configuration from username.pythonanywhere.com
to www.mydomain.com. There was a CNAME value webapp-.pythonanywhere.com
I
Hi
I am getting a SMTPData Error when i try to send message from my django
application
The Error it gives is this
smtplib.SMTPDataError: (550, b'5.7.60 SMTP; Client does not have
permissions to send as this sender
[BN6PO18UB1201.namprd18.prod.outlook.com]')
In My settings.py I have the foll
rt@**.org allowed to
> send emails through your smtp provider.
>
> la 31. maaliskuuta 2018 klo 13.30 yingi keme kirjoitti:
>> Hi
>>
>> I am getting a SMTPData Error when i try to send message from my django
>> application
>>
>> The Error i
I Have set up cache in my File System and I have used the following code to
cache my view
from django.views.decorators.cache import cache_page
@cache_page(60 * 15)
def myView(request):
#some code
What i want to know is that, How is this caching mechanism different from
the automatic c
ide caching but also works for
> first time visitors.
>
>> On Sunday, April 8, 2018 at 10:49:07 AM UTC-4, yingi keme wrote:
>> I Have set up cache in my File System and I have used the following code to
>> cache my view
>>
>> from django.views.decorators.ca
You can start your own web application project if you have any start-up idea.
You can also create a web service since you have a good knowledge of the REST
framework.
I think its all about what you want to do with your knowledge
Yingi Kem
> On 6 Jun 2017, at 8:54 AM, Karan Tatiwala wrote:
>
By static files, i believe you are talking about webpage files. First of all,
you cant import a module to a static files.
What you can do is to use the jinja logic in your webpage files. But then you
have to create a context that will enable you render python objects to your
webpages.
I deepl
Well. What you are trying to do is a bit awkward, but i will try my best to
answer.
The variable for foreign key is supposed to be declared under Student model
because parents can typically have more than one kid in a school isnt it?
You should try and understand relational database.
Now this i
Yea exactly. A many to many relationship is the best approach on this.
Elorm you should try many to many relationship if you are not completely
satisfied.
Thanks Melvyn
Yingi Kem
> On 10 Jun 2017, at 3:38 PM, Melvyn Sopacua wrote:
>
> On Saturday 10 June 2017 13:20:11 yingi k
I want to know if django supports any real time notifications/communications in
web applications.
For instance, if User A makes an update to its model instance, User B should
get an instant notification in real time.
Does django provide a mechanism for that?
--
You received this message becau
tions (as long as the users are
> logged in to the website).
>
> Regards,
>
> Andréas
>
> 2017-06-11 14:00 GMT+02:00 yingi keme :
>> I want to know if django supports any real time notifications/communications
>> in web applications.
>>
>> For instan
Thanks melvyn. I think you nailed it for me.
Thanks again
Yingi Kem
> On 11 Jun 2017, at 1:18 PM, Melvyn Sopacua wrote:
>
> On Sunday 11 June 2017 05:00:19 yingi keme wrote:
> > I want to know if django supports any real time
> > notifications/communications in web appl
Hello
I have this issue i am trying to resolve. I installed django directly into my
Python35 directory without creating a new virtual environment for my project.
However, now i want to create a new virtual environment for a new project. If
i make some modifications in django inside this new vi
I recommend you buy the book 'django unleashed'. It is highly recommended for
beginners. Some sites will help you, but not nearly as close to the book
'Django Unleashed'
And hope you are proficient in python programming language? If not, i suggest
you learn python first before diving into djang
jango installed.
>
> Yours,
> Russ Magee %-)
>
>> On 12 Jun 2017, 9:10 PM +0800, yingi keme , wrote:
>> Hello
>>
>> I have this issue i am trying to resolve. I installed django directly into
>> my Python35 directory without creating a new virtual envir
I dont particularly understand how you wish to be updated and know when a
record is added or removed.
Nevertheless, you can make use of django signals (Thanks to melvyn). It will be
of great help.
Yingi Kem
> On 13 Jun 2017, at 12:54 PM, Stodge wrote:
>
> I have a model with a many to many
Hello
I tried installing django channels on my virtual environment. But it has
failed. And it gives the following error 'failed building wheel for twisted'.
What is this about.? And how can i handle this issue?
--
You received this message because you are subscribed to the Google Groups
"Djan
I have solved the problem. Thanks anyways..!
Yingi Kem
> On 14 Jun 2017, at 6:43 PM, yingi keme wrote:
>
> Hello
>
> I tried installing django channels on my virtual environment. But it has
> failed. And it gives the following error 'failed building wheel for twis
You have to study django tutorials.
Ok for a simple task like this. After you have successfully created your app in
your project, all you need is to configure your url so it can point the
views.py.
The views.py file will have a function like this
def myInput(request, input):
return rende
now go on ahead and install channels
> in your virtual environment
>
> ..\MyVenv> pip install channels.
>
> Thats all.
> On 15 Jun 2017, at 11:07 AM, Oladipupo Elegbede
> wrote:
>
> Do you want to share what you did to resolve it?
>
> That may help so
def builddetails(request, id):
build = Build.objects.get(pk=id)
Obj = BuildForm(request.POST)
Obj.save()
return render(request, .)
> On 16 Jun 2017, at 12:03 AM, Mark Alan Jones wrote:
>
> Hello Django Community,
>
> I am new to Django and tackling my first app outside of
Is your project residing in django? Or you are using a different web framework?
Yingi Kem
> On 20 Jun 2017, at 7:24 PM, MigDotCom wrote:
>
> I want to use python and django to make a news-feed for my website I have
> searched about it but i still don't even have clue where to start:
> 1. Do i
Do you have a strong knowledge of python? Have you used any other web
development framework before?
Let me know your programming background.
Yingi Kem
> On 23 Jun 2017, at 1:51 PM, Daniel Jacob
> wrote:
>
> I am new to django and i want some form of tutorial
> --
> You received this message
So i want to know, when using a model signals. The reciever function has
**kwargs. What is the content of **kwargs in this reciever function below:
@reciever(post_save, sender=MyModel)
def func(sender, instance, **kwargs):
# some action.
--
You received this message because you are subscrib
handle those new arguments.
>
>
>> On Tue, Jun 27, 2017 at 4:14 PM, yingi keme wrote:
>> So i want to know, when using a model signals. The reciever function has
>> **kwargs. What is the content of **kwargs in this reciever function below:
>>
>>
. when loading
> a fixture). One should not query/modify other records in the database as the
> database might not be in a consistent state yet.
> using
> The database alias being used.
> update_fields
> The set of fields to update as passed to Model.save(), or None if
> upd
If your site is gonna be dynamic. Sure, django provides tools to create high
level web application.
But if your site is going to be static, i think you should just stick with
html/css
Yingi Kem
> On 3 Jul 2017, at 9:02 PM, Jagjeet Ubhi wrote:
>
> Hello!
> I am new to Django. I would like to
I want to know. How do you access a table generated by django-tables2 in your
client side using javascript?
Does django-tables2 provide a mechanism to access table contents via client
side.? A traditional html tags do have an id or a classname for access
purpose. How will you do such with a dj
Thanks...
Yingi Kem
> On 4 Jul 2017, at 9:45 PM, Владислав Котвицкий
> wrote:
>
> Sorry, i dont know django-tables2, but i try use DOJO framework DataGrid and
> this framework have all mechanism
>
> вторник, 4 июля 2017 г., 23:31:04 UTC+3 пользователь yingi keme напи
Thanks James.
Yingi Kem
> On 4 Jul 2017, at 11:55 PM, James Schneider wrote:
>
>
>
> On Jul 4, 2017 1:31 PM, "yingi keme" wrote:
> I want to know. How do you access a table generated by django-tables2 in your
> client side using javascript?
>
> Does
How will you create a web socket for a single user such that another program
can send a json data to thesame specific user open channel. What i normally see
is:
Html script:
var mysocket = new WebSocket('ws://' + window.location.host + '/users/');
routing.py:
channel_routing = [route("websock
Yes, you should create a group per user. That way users with more than one
> tab open will get data sent to all tabs too.
>
> Andrew
>
>> On Wed, Jul 5, 2017 at 6:42 AM, yingi keme wrote:
>> How will you create a web socket for a single user such that another program
&
more than one
> tab open will get data sent to all tabs too.
>
> Andrew
>
>> On Wed, Jul 5, 2017 at 6:42 AM, yingi keme wrote:
>> How will you create a web socket for a single user such that another program
>> can send a json data to thesame specific user o
I dont think you will have any app conflicts if you give them names applying to
the content of the app or any other name that suites you best.
Yes Ofcourse you should avoid name conflicts as regards to naming the apps
within the project. But on the purpose of github, maybe you should be concerne
You can contribute by helping to solve problems of others. Its just a matter of
some few hours or even minutes before you start recieving mails from people
stuck with a particular code. Ofcourse that is if you set your forum account to
be recieving mails.
You can also ask python questions and s
Try getting the book 'django unleashed'. It is one of the most comprehensive
books for absolute beginners in django.
Also learn http basics, it will be valuable to understand the client/server
model of django.
Yingi Kem
> On 14 Jul 2017, at 12:48 AM, Amir Pirmoradian
> wrote:
>
> Hey Guys,
Well you just need to keep practicing. Try to write programs to solve some
simple task.
Remember, learning the syntax is just the first step. You have to practice more
by doing some exercises. When you are very comfortable with language, then you
can start a web app project.
You always learn
I have a javascript file in my app static directory.
However inside my javascript file. I want to make use of an image. That is:
Javascript file is d6.js and it contains this code
var imageBank = baseUrl + "static/Game/blank.gif";
And then my html has this
{% load staticfiles %}
However whe
al variable, like
> app.staticUrl, in order to not pollute the global namespace, but that's
> another
> issue.)
>
> Regards,
>
> Antonis
>
> Antonis Christofides
> http://djangodeployment.com
>
>> On 2017-07-18 16:53, yingi keme wrote:
&g
:
>
> var imageBank = staticUrl + 'Game/blank.gif';
>
> (It is also good practice to use a single JavaScript global variable, like
> app.staticUrl, in order to not pollute the global namespace, but that's
> another
> issue.)
>
> Regards,
>
> Ant
gt;
> Regards,
>
> Antonis
>
> Antonis Christofides
> http://djangodeployment.com
>
>> On 2017-07-18 16:53, yingi keme wrote:
>> I have a javascript file in my app static directory.
>>
>> However inside my javascript file. I want to make use of an
What will be the best approach to designing a database schema that groups users
in a collection of 4?
How will you create a model for lets say in an online game setting such that
you want only 4 players in a single group based on thesame criteria amongst
players?
Creating this model is problem
Check google and download this pdf
"Definitive Guide to Django".
But hope you are good in python language?
Yingi Kem
> On 26 Aug 2017, at 10:25 PM, AFSungo wrote:
>
> Hi,
>
> I am beginner and want know:
>
> Where can I find an online and remote class to learn Django??
>
>
> --
> You re
Okk so django has its own server set up already configured
All you need to so is type in the command
python manage.py runserver
Yes. Django uses the MVC approach. So you have to use Models if you want to
connect with your database.
Yingi Kem
> On 28 Aug 2017, at 3:25 PM, Gopi Devarapalli
I have this code in my app view
from django.shortcuts import render
from django.contrib.auth.decorators import login_required
@login_required(login_url="login/")
def home(request):
return render(request, "home.html")
Here also is my project url
from django.conf.urls import url, include
fr
Say you have a simple class
class Cart(object):
def _init_(self, name, age):
self.name = name
self.age = age
And then you have an instance of the class
T = Cart('john', 23)
How will you serialize the object instance T using json?
I know json serializes limited data structur
-rest-framework do have excellent serializers you can leverage.
>
> Django itself also has serializer you can use.
> https://docs.djangoproject.com/en/1.11/topics/serialization/
>
> 16.9.2017 13.26 "yingi keme" kirjoitti:
>> Say you have a simple class
>>
&
Hello
Ok i have a simple model that has an ImageField to store image files
class Product(models.Model):
category = models.ForeignKey('CatalogCategory',
related_name='products')
name = models.CharField(max_length=300)
photo = models.ImageField(upload_to='Home/static/Home/img',
des
> wrote:
>
> Hi,
>
> You need to put this in your template:
>
>
>
> You must make sure that settings MEDIA_ROOT and MEDIA_URL are set correctly.
>
> Regards,
>
> Antonis
> Antonis Christofides
> http://djangodeployment.com
>> On 2017-0
I am aware that you need a third-party services like Bitpay, Coinbase,
BitcoinPayFlow etc if you want to speedily integrate a bitcoin payment gateway
to your site.
I am also aware that python and django do have libraries available for the
bitcoin implementation.
In the case of using python/dj
What exactly is the error you are trying to fix?
Yingi Kem
> On 14 Oct 2017, at 10:49 AM, utpalbrahma1...@gmail.com wrote:
>
> my code that caused an error :
> ///
> from django.shortcuts import render
> from django.http import HttpResponse
> from django.template import loader
> # Create your vi
Check the extension. Sometimes editor will save the file as .htm while your are
referencing .html in your views. This can give a "No templates found" exception
too.
Yingi Kem
> On 15 Oct 2017, at 11:22 AM, utpalbrahma1...@gmail.com wrote:
>
> even though i have correct to login.htmlwhile
Send a mail to yingik...@gmail.com. From your name I know you are Ijaw. I am too. I can address all or most of your issues. Original Message Subject: REQUEST FOR GUIDES IN MY DJANGO CRYPTO EXCHANGE PROJECTFrom: Emiedonmukumo Dick Boro To: Django users CC: Hello Guys,This is my First
Can you please elaborate more on the project if it's valuable enough to invest time and effort. Original Message Subject: Looking for co foundersFrom: balu k To: Django users CC: I am working on a project based on stock market.I am actively looking for co founder,if anyone intereste
82 matches
Mail list logo