Posts

Showing posts from April, 2014

Would you use a macro or VBA code with MS-Access? -

i new access 2013. have warehouse management project create access - many users @ same time different locations. i have couple of basic questions, if don't mind. better code using macros or vba preferred choice? or combination better approach? if so, sort of functions code in each modality? the next question has data entry. going using bar-code scanners in few locations. i terminal or wireless receiver in ready mode time next scan, of course happens @ random times throughout day. i assume create loop stopped @ point called input text box. how keep program 'active' letting operators scan without them having refresh anything. hope questions aren't vague or elementary. some additions paulo wrote: i don't know how many "many users" are, if it's more few, should think using sql server express (the free version) backend instead of access file. more robust. , if "different locations" means wan connections involved, can...

javascript - jquery ajax ParseError with Musixmatch API -

i using jquery 1.11.3 following code: $.ajax({ type: "get", data: { apikey: apimusixkey, q_track: q, page_size: 10 }, url: "http://api.musixmatch.com/ws/1.1/track.search", datatype: "jsonp", contenttype: 'application/json', success: function(data) { //console.log(json); }, error: function(jqxhr, textstatus, errorthrown) { console.log(jqxhr); console.log(textstatus); console.log(errorthrown); } }); i getting error: parseerror... [] not called what doing wrong? looks missing few things on ajax. need specify name of callback function handle jsonp. also, there's format parameter need use musixmatch api. checkout plunker: http://plnkr.co/edit/xw6tfujquw8o8evpeegu?p=preview $(function(){ $.ajax({ type: "get", data: { apikey:"309788821d050a0623303261b9ddedc4", q_track:"back dece...

c# - Azure AD Graph API Group Search -

we have office365 account active directory on azure. making search feature queries our azure ad given search term. since graph api supports .startswith(string) linq queries, have pull in groups query collection search term. i using 'get group members' function this demo guide make search function. here code: public list<mymodel> searchgroups(string term) { list<mymodel> returnlist = new list<mymodel>(); //my service root uri uri serviceroot = new uri(servicerooturl); //create client , authorization activedirectoryclient adclient = new activedirectoryclient(serviceroot, async () => await getapptokenasync()); //get collection of igroup ipagedcollection<igroup> groups = adclient.groups.executeasync().result; //do while loop because groups returned in paged list... { list<igroup> directoryobjects = groups.currentpage.tolist(); /...

r - Melt able to remove NA's for some variables but not others? -

i have question regarding melt function reshape2 package in r. i melt multi-dimensional array, keeping na's of variables, removing na's rest. example illustrate don't want: library(reshape2) subtotals <- tapply( mtcars$mpg, list(mtcars$cyl,mtcars$disp,mtcars$hp,mtcars$drat,mtcars$wt), sum ) subtotals_melted <- melt(subtotals, na.rm = t) # removes na's vars i know there na.rm= option in melt function, removes na 's variables. such subtotal-ing operations typically take quite bit of memory due implicit na 's, after being melted, wondering if there faster , more memory-efficient way implement such use-case. thanks in advance! library(dplyr) library(magrittr) result = mtcars %>% group_by(cyl, disp, hp, drat, wt) %>% summarize(sum_mpg = sum(mpg, na.rm = true) ) this preserve na levels in grouping variables not mpg. in general, though, agree michael bellhouse conditional mutation best done separating 2 separate datafr...

amazon web services - S3 Buckets disappeared. "No bucket of that name" when accessing via known link -

when access s3 account either "start screen" instructions how set bucket, or blank s3 screen. i have tried using link file see whether file there "no bucket of name" message. most of these files (hundreds of them) have been or 3-4 years , have never had problem. the access (other retrieve link) on past few years change email address , password (approx 1-2 weeks ago) , uploaded few files on last few days. i not technical @ rather anxious have lot of angry customers wanting links cannot provide. have of files on computer, however, way big email. any appreciated. i happy pay fix me if possible. thanks

sdk - Ionic not building android due to android-24 target -

Image
i doing following ionic command: ionic build android i receiving error message: hint: open sdk manager running: /usr/local/cellar/android-sdk/24.3.4/bin/android require: 1. "sdk platform" android-24 2. "android sdk platform-tools (latest) 3. "android sdk build-tools" (latest)] so opened sdk manager , see following info: i have removed, added, installed, trying build, etc. have had 0 luck. have tried of these changes files . still nothing. i have tried adding android_home path .bash_profile. not have configured. didn't work earlier. instruction 1: after adding android_home , make sure below: restart system or run source ~/.bash_profile remove android platform project ionic cordova platform rm android or ionic platform rm android add android platform ionic cordova platform add android then ionic cordova run android or ionic run android instruction 2: to set android_home , java_home , follow below steps: run command o...

ruby - SQlite error: "no such table " -

i building simple bank program in ruby. have set mvc style. getting following error message. /home/devil/.rvm/gems/ruby-2.2.1/gems/sqlite3-1.3.10/lib/sqlite3/database.rb:91:in `initialize': no such table: managers (sqlite3::sqlexception) /home/devil/.rvm/gems/ruby-2.2.1/gems/sqlite3-1.3.10/lib/sqlite3/database.rb:91:in `new' /home/devil/.rvm/gems/ruby-2.2.1/gems/sqlite3-1.3.10/lib/sqlite3/database.rb:91:in `prepare' /home/devil/.rvm/gems/ruby-2.2.1/gems/sqlite3-1.3.10/lib/sqlite3/database.rb:134:in `execute' /home/devil/desktop/rubybank-manager_model/model.rb:19:in `initialize_database' /home/devil/desktop/rubybank-manager_model/model.rb:7:in `initialize' controller.rb:8:in `new' controller.rb:8:in `initialize' controller.rb:124:in `new' controller.rb:124:in `<main>' earlier in day program working fine. changed local variable's name in controller method , started throw me above error. things have tried have failed: update s...

html - Don't append a slash to url on page refresh -

how prevent appending slash url when page refreshes? have folder same name page don't want refresh make website go folder , index.php inside folder. example, not want http://mywebsite.com/blog become http://mywebsite.com/blog/ different page. how can make folder inaccessible yet readable? want keep name same.

A test program to send mail using gmail works well on localhost:3000, but the same code does'nt work on meteor.com -

"meteor deploy testcode" uses mailgun. instead, want use gmail. small test program below works on 'localhost:3000'. returns error on 'meteor.com'. "error invoking method 'sendmail': internal server error [500]" how use gmail properly. (i set gmail account permission lower, , test program on localhost can send mail through gmail.) // test.html <head> <title>test</title> </head> <body> {{> test}} </body> <template name="test"> <input type="button" value="send mail"> </template> // test.js if (meteor.isclient) { template.test.events({ 'click [type="button"]':function(){ var datetime = new date(); console.log(datetime); meteor.call('sendmail',datetime); } }); } if (meteor.isserver) { meteor.startup(function () { var gmailaccount = {...

php - Status 200 = HttpPut works? -

i'm trying modify value of database ( mysql ). issue i'm using httput on android application , slim framework micro framework of php xampp managing database. the problem it's doesn't modify database gives me status 200 when use response.getstatusline().getstatuscode() . and if didn't understood it, when receive status 200 it's because request had been succesful. can see here: status 200 ok the request has succeeded. am missing something? did understand wrong? why database doesn't change? p.s. if need provide code, let me know in comment. edit: here it's put method in php script . $app->put("/cars/",function() use($app) { $name = $app->request->put("name"); $description = $app->request->put("description"); $idcar = $app->request->put("idcar"); try{ $connection = getconnection(); $dbh = $connection->prepare("update cars set nam...

How to solve the compile error in Android NDK? -

the directory structure following: - test/ -- deps/ --- librtmp/ ---- rtmp.h ---- android.mk -> librtmp.a --- .../ #other deps -- android.mk -> test.a -- src/ --- flv_muxer.c the flv_muxer.c code snippet: #include "librtmp/rtmp.h" the compile error: $ ndk-build [armeabi-v7a] compile thumb : test <= flv_muxer.c in file included /users/workdir/testproject/test/src/flv_muxer.c:9:0: /users/workdir/testproject/test/src/flv_muxer.h:13:26: fatal error: librtmp/rtmp.h: no such file or directory #include "librtmp/rtmp.h" ^ compilation terminated. make: *** error 1 i solved compile error adding local_cflags or local_c_includes following: -- android.mk -> test.a local_cflags := -i$(local_path)/deps/ or local_c_includes := \ $(local_path)/deps/ \ $(local_path)/deps/librtmp

fft - gnuRadio Dual Tone detection -

i trying come efficient way characterize 2 narrowband tones separated 900khz (one @ around 100khz , 1 @ around 1mhz once translated baseband). don't move in freq on time may have amplitude variations want monitor. each tone 100hz wide , required characterize these 2 beasts on long periods of time down resolution of 0.1 hz. samples coming in @ on 2m samples/sec (tbd) adequately acquire highest tone. i'm trying avoid (if possible) doing brute force >2msample ffts on data once second extract frequency domain data. there efficient approach? akin performing 2 (much) smaller ffts around bands of interest? ive looked @ goertzel , chirp z methods not helps save processing. something akin performing 2 (much) smaller ffts around bands of interest there is, it's called goertzel, , kind of fft single bins, , have looked @ it. will save cpu time. anyway, there's no reason 2m-point fft; first of all, want resolution of 1/20 sampling rate, hence, 20-p...

c# - How to mock IRepository<T>? -

i want mock unit of work interface repositories inside unit test purpose. far able below. namespace liquid.service.unittest { using liquid.dataaccess.interface; using liquid.domain; using domain.interface; using moq; using system.collections.generic; using system.linq; internal class helper { internal mock<iunitofwork> mockunitofwork(icollection<dummy> dummies = null, icollection<producttype> producttypes = null) { dummies = dummies ?? new list<dummy>(); producttypes = producttypes ?? new list<producttype>(); var dummyrepositorymock = mockdummyrepository(dummies); var producttyperepositorymock = mockproducttyperepository(producttypes); var unitofworkmock = new mock<iunitofwork>(); unitofworkmock.setup(x => x.dummyrepository) .returns(dummyrepositorymock.object); unitofworkmock.setu...

npm - Facing trouble with Gulp package installation -

{ "name": "school", "version": "1.0.0", "devdependencies": { "gulp": "latest", "gulp-ruby-sass": "latest", "gulp-util": "latest", "gulp-rename": "latest", "map-stream": "latest", "gulp-livereload": "latest", "gulp-concat": "latest", "gulp-uglify": "latest", "gulp-watch": "latest" } } and when run gulp command on cmd there error saying cannot find module 'gulp-rename' , on...can please me this? maybe need use npm install before run gulp run npm install install devdependencies.

How to solve the "undefined reference to 'ntohl'" compile error in Android NDK? -

how solve compile error? error: undefined reference 'ntohl' collect2: error: ld returned 1 exit status i use android-ndk-r10d. when building android ndk, ntohl , other functions converting between network , host byte order #defines present in header <sys/endian.h> . including header should fix compilation error.

mongodb Failed: error connecting to db server: no reachable servers -

i installed mongodb in ubuntu14.04 server i not able connect mongodb via "mongoimport", "mongodump", "mongostat", etc. show "no reachable server" mongoimport --db test --collection restaurants --drop --file dataset.json 2015-08-25t13:08:29.802+0800 [........................] test.restaurants 0.0 b/11.3 mb (0.0%) 2015-08-25t13:08:30.306+0800 failed: error connecting db server: no reachable servers 2015-08-25t13:08:30.306+0800 imported 0 documents somehow, able connect mongo shell mongo --port 27017 mongodb shell version: 3.0.6 connecting to: 127.0.0.1:27017/test at first, doubt if cause iptables, flush iptables rules , create rules accept, still same sudo iptables -s -p input accept -p forward accept -p output accept -a input -j accept -a input -i lo -j accept -a forward -j accept -a output -j accept -a output -o lo -j accept i search stackoverflow , google , told marked off bind_ip or s...

python - How to take input from ComboBox in PyQt4 -

i have created combobox in pyqt4. combobox have 5 options , user needs select 1 option among , click submit button. have tried define function called printing action used after user clicks submit button def home(self): self.lbl = qtgui.qlabel('types of analysis', self) self.lbl.setfont(qtgui.qfont('sansserif', 15)) btn = qtgui.qpushbutton('submit', self) btn.move(200, 200) cb = qtgui.qcombobox(self) btn = qtgui.qpushbutton('submit', self) cb.additem('sentiment analysis') cb.additem('data cleansing') cb.additem('genomics') cb.additem('integration') cb.additem('visualization') cb.move(200,100) cb.resize(150,40) qtgui.qapplication.setstyle(qtgui.qstylefactory.create('cleanlooks')) cb.activated[str].connect(self.onactivate) btn.clicked.connect(self.printingaction) self.show() def printingaction(self): print(t) can me in understand...

sql server - Which Transact-SQL query is most efficient? -

plan pass exam "querying microsoft sql server 2012" i have 1 question have problem understand. question is: which transact-sql query should use? database contains table named purchases. thetable includes datetime column named purchasetime stores date , time each purchase made. there non-clustered index on purchasetime column. business team wants report displays total number of purchases madeon current day. need write query return correct results in efficient manner. transact-sql query should use? possible answers are: a. select count(*) purchases purchasetime = convert(date, getdate()) b. select count(*) purchases purchasetime = getdate() c. select count(*) purchases convert(varchar, purchasetime, 112) = convert(varchar, getdate(), 112) d. select count(*) purchases purchasetime >= convert(date, getdate()) , purchasetime < dateadd(day, 1, convert(date, getdate())) this source: which transact-sql query should use? accord...

iphone - Could not pre-launch appium: Error: Instruments crashed on startup -

i need inspect ios app in appium inspector using real iphone device. i using 1.4.8 appium version, physical device iphone 6 , platform version 8.3. i have enabled enable ui automation option under developer option settings. i have given following parameters in ios settings menu. app path: .zip format, platform version: 8.3, force device: iphone , udid: specific device if start appium server, getting below log message. error log:- launching appium command: '/applications/appium .app/contents/resources/node/bin/node' lib/server/main.js --command-timeout "7200" --pre-launch --debug-log-spacing --platform-version "8.3" --platform-name "ios" --app "/users/valar/work/sample_app.zip" --udid "4a9b4ad142c7f308bfd3217d2fae43f9a4bc8e00" --show-ios-log --device-name "iphone 6" info: [debug] starting appium in pre-launch mode info: pre-launching app info: *******************************...

http headers - Parsing Request Payload string -

can me in parsing data request payload string following one: 7|0|5| https://www.bosscapital.com/app/basic/|b8cc86b6e3bfeaf758de5845f8ebea08|com.optionfair.client.common.services.tradingservice|getassetdailyticks|j|1|2|3|4|2|5|5|cb|u9mc4gq| thanks & regards ajay you can call split() method on strings split them @ character. alternatively, can use regex.split(value, "<pattern>"); splitting, e.g. if have multiple characters want split at. <pattern> string here, can provide more 1 character (e.g. "\r\n" find line breaks). using system; class program { static void main() { string s = "7|0|5|https://www.bosscapital.com/app/basic/|b8cc86b6e3bfeaf758de5845f8ebea08|com.optionfair.client.common.services.tradingservice|getassetdailyticks|j|1|2|3|4|2|5|5|cb|u9mc4gq|"; // split string @ pipe character string[] parts = s.split('|'); // process segments foreach (string segment in parts) { cons...

javascript - Event is not showing in Full Calender using codeigniter? -

i retrive events database using events url, events not display in fullcalnder?? my js codes $('#inspectioncalendar').fullcalendar({ header: { left: 'next today', center: 'title', right: 'month,basicweek,basicday' }, editable: false, eventlimit: true, // allow "more" link when many events events: '<?php echo base_url(); ?>inspections/inspections_record', }); my controller action : function inspections_record() { echo "[ { title: 'all day event', start: '2015-08-01' }, { title: 'long event', start: '2015-02-07' }, { id: 999, title: 'repeating event', start: '2015-08-09t16:00:00' }, { ...

c# - File Download in javascript using AJAX call -

this java script code downloading file database on button click, when button clicks function calls. using ajax call have moved handler. function downloaddocument() { var currentuserempid = currentselecteduser; ext.ajax.request({ url: "uploadattachment.ashx?mode=downloaddocument&employeeid=" + currentuserempid, success: function (response) { var data = response.responsetext; }, failure: function (form, action) { } }); } here comes handler page, have got bytes of file byte[] buffer . problem here download not working. could't figure out problem, since iam beginner. please this, thankyou. case "downloaddocument": webclient web = new webclient(); try { byte[] buffer; var query2 = @"select lld_decleration_doc (select instance, employee_id, lld_decleration_doc, row_number() over(partition employee_id order update_dat...

android - How to send mobile number to Send activity? -

request_viewer activity public class request_viewer extends listactivity { private progressdialog pdialog; private static final string request_viewer_url = "http://192.168.43.84/taxiservice/request_view.php"; private static final string tag_posts = "posts"; private static final string tag_request_id = "request_id"; private static final string tag_customer_city = "currentcity"; private static final string tag_customer_name = "customername"; private static final string tag_customer_mobile = "customermobile"; private static final string tag_starting_location = "starting_location"; private static final string tag_distination = "destination"; private static final string tag_whendate = "whendate"; private static final string tag_whentime = "whentime"; private jsonarray crequest = null; private arraylist<hashmap<string, string>...

Web API 2 OWIN Bearer token authentication with Dependency Injection Not working -

i need create web api 2 project token based authentication , implement dependency injection in controllers including default accountcontroller . following these steps using visual studio 2013 create new asp.net web application (framework 4.5) select web api authentication set individual user accounts i referred services , contracts class dlls , packages pm > install-package unity pm > install-package unity.webapi altered unity.config public static void registercomponents() { var container = new unitycontainer(); // register components container here // not necessary register controllers // e.g. container.registertype<itestservice, testservice>(); var section = loadunityconfigurationfile(); section.configure(container, "parent"); ////section.containers.default.configure(container); container.registerinstance(typeof(iunitycontainer), container); globalconfiguration.configur...

android - How to save the button that has been added dynamically in andriod? -

i had searched many similar questions , know how dynamic add button how can save can see when reopen app... linearlayout.layoutparams params = new linearlayout.layoutparams( linearlayout.layoutparams.match_parent, linearlayout.layoutparams.wrap_content); button btn = new button(mainactivity.this); linearlayout linaer = (linearlayout) findviewbyid(r.id.linearlayout1); btn.setid(count); final int id_ = btn.getid(); btn.settext(edittext.gettext().tostring()); **linaer.addview(btn, params);** button btns = ((button) findviewbyid(id_)); btns.setonclicklistener(new view.onclicklistener() { public void onclick(view view) { intent = new intent(); it.setclass(mainactivity.this, album_main.class); startactivit...

javascript - Getting a syntax error when invoking meteor's Email.send -

i'm trying set email sending using meteor , mailgun. before, used default meteor options , if app deployed emails sent methods themself should fine. problem app run locally need set smtp server. i'm trying use default sandbox mailgun provided because don't know domain yet i'm getting syntax error. here's meteor console says. unfortunately can't understand of this. piece of code appears in meteor.methods. i20150825-08:50:51.482(2)? exception while invoking method 'sendemail' sendererror: mail command failed - 501 syntax error i20150825-08:50:51.484(2)? @ object.future.wait (/home/m/.meteor/packages/meteor-tool/.1.1.4.1ih17fx++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:398:15) i20150825-08:50:51.484(2)? @ smtpsend (packages/email/email.js:76:1) i20150825-08:50:51.484(2)? @ object.email.send (packages/email/email.js:153:1) >i20150825-08:50:51.485(2)? @ [object objec...

javascript - Laravel 5 Eloquent objects and ajax -

i beginner in javascript , jquery , trying data server, access them , display them without reloading page ajax , laravel 5. so here do: my controller: public function get_media_details(){ $media_id = $_post['media_id']; $media_details = media::find($media_id); print_r ($media_details); } my js function: function show_media_detail(media_id){ $.ajax({ url: "get_media_details", type:"post", data: { media_id: media_id }, beforesend: function (xhr) { var token = $('meta[name="csrf_token"]').attr('content'); if (token) { return xhr.setrequestheader('x-csrf-token', token); } }, success:function(data){ console.log(data); }, error:function(){ console.log("no data returned"); } }); } and result of console.log(data): "app\m...

jquery - Put the links in a list without a html list -

i'm using asp.net , html code gets generated. now, want make dropdownmenu (which made jquery)to display list. can see links written in line. have write them among themselves. , have menu dropdown under menu hover. know do? $(document).ready(function() { $("[id$=submenu]").hide(); $(".menu_link, .submenu_panel").hover(function() { //hover inn function var nthnumber = $(this).index() + 1; $("[id$=submenu] .submenu_panel").hide(); $("[id$=submenu]").show(); $("[id$=submenu] .submenu_panel:nth-of-type(" + nthnumber + ")").show(); }, function() { //hover out function $("[id$=submenu]").hide(); var nthnumber = $(this).index() + 1; $("[id$=submenu] .submenu_panel:nth-of-type(" + nthnumber + ")").hide(); }); }); #pnlmenu .menu_link:hover #pnlsubmenu .submenu_link { height: 50px; display: block; } #wrapper_menu { margin-b...

Why should a REST service support multiple formats (e.g. XML and JSON)? -

several sources (e.g. here ) suggest rest service should support several formats. what benefits of approach? wouldn't make service more complicated , harder support while providing no additional benefits customer? my point of view hope not necessary. if have given both, giving flexibility customer use either xml or json. i prefer using json hence more compact , readable - in communication "faster" because less data transferred xml. if use xml, customer can use xslt, xpath things. both has pros , cons.

java - Is it possible to reduce number of pages in android? -

i making android app. app consist of list. clicking each item of list new page opens. list contains 50 items.i should make 50 activity , corresponding xml file. so, there way make process easier don't force me make 50 activity 1 one? reputation not enough. upload related picture. http://uupload.ir/files/oh1o_1.png http://uupload.ir/files/zam9_2.png if have list of items means have list of objects of same kind same structure. due this, have 50 pages show user same item different values variables, same structure. you can make objects in list parcelable (refer this ), pass intent second activity create, receive it, , @ last populate screen item passed. if have troubles or doubts feel free ask :) edit: imagine listview called listview, , list of items used fill listview called list in mainactivity this: listview listview = (listview) findviewbyid(r.id.listview); listview.setonitemclicklistener(new onitemclicklistener() { public void onitemcl...

jquery - Bootstrap - set different interval on each carousel item -

this question has answer here: different slide duration each item on bootstrap 3.1 carousel 3 answers hi i'm having carousel on bootstrap , i'd set each item different interval, first item have duration of 10 sec, 2nd 5 sec 3rd 3sec etc etc .. therefore decided use data attribute <!-- carousel --> <div id="mycarousel" class="carousel slide" data-ride="carousel"> <!-- indicators --> <ol class="carousel-indicators"> <li data-target="#mycarousel" data-slide-to="0" class="active"></li> <li data-target="#mycarousel" data-slide-to="1" ></li> <li data-target="#mycarousel" data-slide-to="2" ></li> <...

responsive design - Correct way of using @media query -

i want change height of banner on different screen sizes, using below snippet. /* large devices, wide screens */ @media screen , (min-width : 1366px) { } /* medium devices, desktops */ @media screen , (min-width : 992px) { } /* small devices, tablets */ @media screen , (min-width : 768px) { } /* small devices, phones */ @media screen , (min-width : 480px) { } /* custom, iphone retina */ @media screen , (min-width : 320px) { } but code creating problems, when change height of banner change bigger screens also. now, googled , found different answers , viewpoints of people regarding media query snippet. below working me, fixed size , have seen people not using fixed ranges using max or min size only. @media screen , (min-device-width : 340px) , (max-device-width : 355px) {} i want know correct , future-proof way of working media queries.? refer below link , find media queries devices. that's correct way well. https://css-tricks.com/snippets/css/...

regex - preg_replace to replace the number in substring php -

i have below string $string = 'id="0000001" did="659" interval="2" media.jpg' i want replace 2 (value dynamic 0 1000) in interval tag 0. how can it? i tried following code replaces all $returnvalue = preg_replace('/\\d+/', '0', $string, -1, $count); $returnvalue = preg_replace('/(?<=interval=")\\d+/', '0', $string, -1, $count); just include lookbehind stating interval=" should present before \\d+ trying find.

c# - Add new list items to a List<T> in MVC, Razor, ASP.NET with form -

i working on order form. page loads saved order items table. first row of table add new item row html.editofor() this: @html.editorfor(m => m.orderitems[0].description) of course [0] represents in case nothing, demonstrate goal. show existing items, loop used: for (int = 1; < model.orderitems.count; i++) { @html.editorfor(d => d.orderitems[i].description)} the order items stored in ienumerable list 4 properties (desc, partnum, cost, qty). the question is: editor row form , when user presses add button on page how can form add new item existing list? you can post 'new item' action ,the param 'new item', can modify existing list now

"python manage.py runserver" vs "django-admin runserver" -

i have app, scaffold, installed, runs when use python manage.py runserver when try start using django-admin, fails; you must either define environment variable django_settings_module or call settings.configure() before accessing settings. i try calling django-admin migrate --settings=scaffold.settings , get; importerror: no module named scaffold.settings i've tried multiple things, googled around, can't seem figure out need change. settings.py file in directory ..\scaffold no longer 1 need use. you should using manage.py unless have specific reason not wanting project-specific configuration. according docs manage.py automatically created in each django project. manage.py thin wrapper around django-admin takes care of several things before delegating django-admin: it puts project’s package on sys.path. it sets django_settings_module environment variable points project’s settings.py file. it calls django.setup() initialize various interna...