from django.contrib import admin
from django.contrib.admin import AdminSite
from django.core.exceptions import ValidationError
from django import forms
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import xmlrpclib | |
server = raw_input("Server IP : ") | |
username = raw_input("USERNAME : ") | |
email = raw_input("EMAIL : ") | |
servAddr = "http://%s:8080" % server | |
s = xmlrpclib.ServerProxy(servAddr) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.BarcodeTest; | |
/* | |
* Copyright 2009 ZXing authors | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Quick Start - Create Content Post. | |
check out -- https://python-wordpress-xmlrpc.readthedocs.org/en/latest/overview.html#quick-start | |
""" | |
from wordpress_xmlrpc import Client | |
from wordpress_xmlrpc import WordPressPost | |
from wordpress_xmlrpc.methods.posts import GetPosts | |
from wordpress_xmlrpc.methods.posts import NewPost | |
from wordpress_xmlrpc.methods.users import GetUserInfo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from wordpress_xmlrpc import Client | |
from wordpress_xmlrpc.methods.users import GetUserInfo | |
# login | |
wp_url = "https://yourblogname.wordpress.com/xmlrpc.php" | |
wp_user = "usernamewp" | |
wp_pass = "passwordwp" | |
wp = Client(wp_url, wp_user, wp_pass) | |
try: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Menampilkan seluruh postingan | |
# ----------------------------- | |
from wordpress_xmlrpc import Client, WordPressPost | |
from wordpress_xmlrpc.methods.posts import GetPosts | |
import pprint | |
# login | |
wp_url = "https://yourblogname.wordpress.com/xmlrpc.php" | |
wp_user = "usernamewp" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url(http://fonts.googleapis.com/css?family=Muli); | |
body { | |
margin:0; | |
padding:0; | |
font-family:helvetica, sans-serif; | |
} | |
p { | |
line-height: 1.8; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
margin:0; | |
padding:0; | |
font-family:helvetica, sans-serif; | |
} | |
a { | |
color:#00abff; | |
text-decoration:none; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url(http://fonts.googleapis.com/css?family=Muli); | |
body { | |
margin:0; | |
padding:0; | |
font-family:helvetica, sans-serif; | |
} | |
p { | |
line-height: 1.8; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import models | |
from django.utils import timezone | |
class Kelas(models.Model): | |
kelas = models.CharField(max_length=32, unique=True) | |
def __str__(self): | |
return self.kelas | |
OlderNewer